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

feat(config): allow publishing to SNS topic #88

Merged
merged 1 commit into from
Sep 20, 2023
Merged

feat(config): allow publishing to SNS topic #88

merged 1 commit into from
Sep 20, 2023

Conversation

jta
Copy link
Contributor

@jta jta commented Sep 20, 2023

Allow AWS Config to publish change notifications to a provided SNS topic.

We can not use count on var.sns_topic_arn to gate the construction of the IAM policy in this case. Terraform will complain it cannot determine the number of instances prior to apply. Instead we always declare a well formed policy, but only inline it if an SNS topic is provided.

Allow AWS Config to publish change notifications to a provided SNS
topic.

We can not use `count` on `var.sns_topic_arn` to gate the construction
of the IAM policy in this case. Terraform will complain it cannot
determine the number of instances prior to apply. Instead we always
declare a well formed policy, but only inline it if an SNS topic is
provided.
@jta jta requested a review from bendrucker September 20, 2023 19:35
@jta jta merged commit 0568081 into main Sep 20, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants