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

feature create terraform module for pub sub topics sc 308777 #10

Conversation

nathanknowles
Copy link
Contributor

  • chore: add terraform-docs config
  • feat(terraform): update IAM policy resources for Pub/Sub

IanKnighton and others added 2 commits October 25, 2024 15:44
- Switched from `google_pubsub_topic_iam_binding` to `google_pubsub_topic_iam_member` and `google_pubsub_subscription_iam_member` to avoid destructive updates to IAM policies. Using `iam_binding` was removing all existing members from the policy when applying a single-member array, as confirmed during testing, despite unclear documentation.
- Updated the "Subscriber" policy to apply to the subscription instead of the dead letter topic. This ensures the subscription can read messages and forward them to the dead letter topic, resolving the incorrect resource target issue.
@nathanknowles nathanknowles merged commit 07a5cd1 into main Nov 20, 2024
1 check passed
@nathanknowles nathanknowles deleted the feature-create-terraform-module-for-pub-sub-topics-sc-308777 branch November 20, 2024 19:38
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