-
Notifications
You must be signed in to change notification settings - Fork 123
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: Add iam-bindings to the default pub/sub service account #34
feat: Add iam-bindings to the default pub/sub service account #34
Conversation
@morgante Hello 👋 Can you please review this one as well? This is an addition to the previous PR that has been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this change isn't applying. Please get tests passing.
Error:
Error: Error retrieving IAM policy for pubsub topic "projects/ci-int-pubsub-4b41/topics/cft-ci-iot-registry-event-topic": googleapi: Error 404: Resource not found (resource=cft-ci-iot-registry-event-topic).
on ../../../main.tf line 36, in resource "google_pubsub_topic_iam_binding" "pull_topic_binding":
36: resource "google_pubsub_topic_iam_binding" "pull_topic_binding" {
@morgante can you please take a look?
I ran your tests locally - it works. The only thing I changed manually in the console for project Only
|
@akovtun-extenda You can update the roles uses for tests here: https://github.com/terraform-google-modules/terraform-google-pubsub/blob/master/test/setup/iam.tf#L18 |
@morgante Role is updated, could you please review again. |
This PR adds IAM bindings that will grant Pub/Sub permission to publish messages to the dead-letter topic (publisher role), and acknowledge forwarded messages from the subscription(subscriber role).
terraform DOCS ref: