-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Feature Request: Allow Credential Creation in aws_secretsmanager_secret_version Resource #4353
Comments
This would be phenomenal, since the endpoint is a part of Secrets Manager itself instead of using Terraform resources. For example, I'm resorting to this right now, which is hackish:
In my opinion, creating the credential (e.g. prod/platforms/mysql/credentials/root) natively (using the AWS-provided API endpoint) is much more manageable. |
@bflad Any updates on this? |
This is not currently planned on our internal roadmap, but we would happily take a look at a pull request. |
Any updates on this? I'm currently using the hacky approach in @teamhanded's comment and getting this merged would be awesome. |
Any updates? |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
We recently released the
aws_secretsmanager_secret_version
resource which allows you to pass in asecret_string
to create a secret version in the service. In a post release comment it was suggested that it might be nice if Terraform could generate the secret rather than requiring it to be passed in.The Secrets Manager API provides an endpoint called
GetRandomPassword
. This is a feature request to implement support to call that endpoint then pass the result intoSecretString
or randomly generate a secret viacrypto/rand
, similar toaws_iam_user_login_profile
.Please vote on this issue by adding a 👍 reaction to the original issue to help prioritize interest. If you're interested in implementing this feature request, please comment below.
Terraform Version
terraform 0.10+
Affected Resource(s)
aws_secretsmanager_secret_version
Terraform Configuration Files
Expected Behavior
Resource does not require
secret_string
attribute and generates a random password (via call toGetRandomPassword
orcrypto/rand
implementation).Actual Behavior
New feature.
References
The text was updated successfully, but these errors were encountered: