Skip to content
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

auth variable should be passed as a map instead of list #12

Open
cdobbyn opened this issue Jan 27, 2023 · 0 comments
Open

auth variable should be passed as a map instead of list #12

cdobbyn opened this issue Jan 27, 2023 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@cdobbyn
Copy link

cdobbyn commented Jan 27, 2023

Describe the Bug

If you have multiple auths attached to your proxy the index can change over time, this means auths are added/removed dangerously from the resource.

Expected Behavior

The "dynamic" auth on the proxy resource continues to function with a for_each, but the auths input is converted to a map which will ensure a "key" is present when looping through instead of "index"

Steps to Reproduce

  1. Add a bunch of auths and apply code
  2. Add some new ones, and apply code
  3. If index ordering changes this will create/delete auth blocks (meaning the db will lose connectivity during the change)

Screenshots

not available at this time, just previous experience with this particular resource

Environment (please complete the following information):

Anything that will help us triage the bug will help. Here are some ideas:
terraform 1.3.6
aws provider 4.51.0

Additional Context

n/a

@cdobbyn cdobbyn added the bug 🐛 An issue with the system label Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant