-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ephemeral/password: Introduce a new ephemeral password resource #625
Conversation
Got it, thank you for explaining :) - (edit: woops, sorry, I meant to reply in the thread above) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@austinvalle sorry to comment on closed pull request, First of all thank you so much for this great feature. can't wait to try it out. I am using random_password along with aws_secretsmanager_secret_version to create passwords and save them in secrets manager. with this pull request i can achieve one step of the goal but with aws_secretsmanager_secret_version the secret is still written to the state file. I have create this issue hashicorp/terraform-provider-aws#41457 but I wanted to ask if this something will be handled actually by default in the new terraform 1.11 version or an ephemeral resource would need to be created as well for aws_secretsmanager_secret_version similar to random_password ? Thanks again |
Closes #639
This PR introduces a new
random_password
ephemeral resource which is functionally similar to the managed resource, minus thekeepers
andid
attributes. Once write-only attribute are introduced in Terraformv1.11
, this resource can be used to generate a random password while avoiding storing that password in state.Notes
keepers
are not relevant because ephemeral resources do not produce a plan and are never stored in state. Triggers for producing an ephemeral password will eventually be the responsibility of the module author.id
is not relevant because the newtesting
framework doesn't require this information and the practitioner doesn't benefit from the duplication withresult
.