-
-
Notifications
You must be signed in to change notification settings - Fork 343
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
fix: Remove data resource for sns topic to avoid race condition #81
fix: Remove data resource for sns topic to avoid race condition #81
Conversation
1e8a10f
to
3b4c166
Compare
3b4c166
to
d3ba438
Compare
…form-aws-modulesGH-46 Data Resources are evaluated before any code is executed, so if a single terraform apply intends to create an SNS topic _and_ create this module, the apply will fail because the data resource cannot resolve. Avoiding the use of data resources by deriving the SNS manually corrects the issue in this case.
d3ba438
to
64d3aa2
Compare
This PR works for me. |
@antonbabenko Why has this PR not been reviewed? |
Lack of time and various other priorities. Want to support? Consider sponsoring me on GitHub. |
Finally! :) v4.12.0 has been just released. |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Remove the SNS Topic Data Resource and instead craft the SNS Topic ARN as a string.
Motivation and Context
Data Resources are evaluated before any code is executed, so if a single terraform apply intends to create an SNS topic and create this module, the apply will fail because the data resource cannot resolve. Avoiding the use of data resources by deriving the SNS manually corrects the issue in this case.
#46
Breaking Changes
This should not affect any existing deployment aside from seeing a change from removing a data resource.
How Has This Been Tested?
Using the examples