twilio / terraform-provider-twilio

Terraform Twilio provider
MIT License
62 stars 13 forks source link

[twilio_api_accounts_keys_v2010] Get the api secret #82

Open oscarmorasu opened 2 years ago

oscarmorasu commented 2 years ago

Issue Summary

How do I retrieve the secret when creating a twilio_api_accounts_keys_v2010 resource?

Steps to Reproduce

  1. Create a twilio_api_accounts_keys_v2010
  2. Pass the secret to some other resource, which is only shown at creation time

Code Snippet

resource "twilio_api_accounts_keys_v2010" "api_key" {
  friendly_name = "test-key"
}

output "api_key_secret" {
  value = twilio_api_accounts_keys_v2010.api_key.secret # How do I get this?
}

Technical details:

shwetha-manvinkurke commented 2 years ago

hm looks like a bug to me. This issue has been added to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog.

bberzinskas-tw commented 2 years ago

also looking for this functionality. pretty crucial given how we manage secrets from TF -> k8s.

kenske commented 2 years ago

Same thing happening with twilio_api_accounts_keys. Makes the resource kinda useless if you can't get the secret.

kenske commented 2 years ago

Seems like this functionality was broken here: https://github.com/twilio/twilio-oai-generator/pull/66

childish-sambino commented 2 years ago

I've bumped this issue internally (ref DI-2321).

nibblesnbits commented 1 year ago

Any movement on this? Just starting trying to use this provider, and it's kinda critical if I am going to use it for this project.