-
Notifications
You must be signed in to change notification settings - Fork 117
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
random_string could support import #62
Comments
Agreed. A lot of modules in the community make use of the |
It seems there was an attempt: #46 I still think it would be usefull |
This would be amazing but also for the |
You can achieve this by pulling down the state, manually editing, and pushing back up although importing would be ideal |
I actually this exact problem today, I really can't shutdown my production servers because of this.
This would be super welcome 👍 |
Is this solution acceptable? #100 |
Concur on support for import on random_string and random random_password |
Can this provider be released so we have access to this feature. Thanks. |
Seems like this was released and works nicely, thanks! Can close this issue now 👍 edit: spoke too soon, I had to manually edit the state to prevent terraform from recreating it on the first apply: # random_password.secret_key_base must be replaced
-/+ resource "random_password" "secret_key_base" {
~ id = "none" -> (known after apply)
+ length = 64 # forces replacement
+ lower = false # forces replacement
+ min_lower = 0 # forces replacement
+ min_numeric = 0 # forces replacement
+ min_special = 0 # forces replacement
+ min_upper = 0 # forces replacement
+ number = true # forces replacement
+ override_special = "abcdef" # forces replacement
~ result = (sensitive value)
+ special = true # forces replacement
+ upper = false # forces replacement
} all values such as |
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. |
Terraform Version
Terraform v0.12.1
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
It would be nice to be able to import random strings when you already have things like an RDS cluster set-up otherwise you need to change the password after the first import happens (if you want to keep the password on the state to be able to rotate).
Actual Behavior
Import is denied
Steps to Reproduce
terraform random_string.master_password 1234
If you think this would be useful, let me know and I can try to implement it.
The text was updated successfully, but these errors were encountered: