-
Notifications
You must be signed in to change notification settings - Fork 50
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
Using count to generate secrets, can take to secret deletion and recreation... #13
Comments
@marcportabellaclotet-mt that could happen if you changes the order of the secrets definitions, for instance if you add a new secret at the top of the list. I can change the implementacion but it will require importing the old resources to match the new map and keys. |
Yes, this can happen when you add secrets on top or delete a secret that is not the last one. |
@marcportabellaclotet-mt PR #14 has the map implementation. Now I need to test it and as you mention I need to elaborate a migration guide or script to help in migrating to this breaking new release. Therefore my todo list includes:
|
@marcportabellaclotet-mt the map implementation is already available in version 0.5.0 |
Thanks! Great job! |
You are welcome! |
Hey @lgallard, After this change I cannot use variables in the secret names eg.
|
@michalfin I took your code and adapted the plain tex example: main.tf
And It worked:
Here are my variables.tf and the local.tf files: variables.tf
local.tf
what error do you get? |
Alternatively, it can be used for_each approach
And defining secrets like this:
The text was updated successfully, but these errors were encountered: