-
Notifications
You must be signed in to change notification settings - Fork 140
feat: Add submodules for pub and sub #234
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
Conversation
9e48feb
to
77fe938
Compare
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.
Can you add an example of a push subscription that pushes to cloud run? the configuration should look something like:
push_subscriptions = [{
name = module.cloud-run-1.service_name
oidc_service_account_email = module.cloud-run-1.service_account_id.email
push_endpoint = module.cloud-run-1.service_uri
}]
You can look at the terraform generated from ADC as a reference
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.
Can we do this in a follow-up PR? I want this PR to simply divide the current root module into two modules.
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.
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.
Can you add an example of a pull subscription where the service account is set to the service account email of an instance template email
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.
Can we do this in follow-up PR?
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.
Left some comments regarding updating examples/tests and READMEs
b353719
to
ff63099
Compare
output "topic" { | ||
value = google_pubsub_topic.topic.name | ||
description = "The name of the Pub/Sub topic" | ||
} | ||
|
||
output "topic_labels" { | ||
value = google_pubsub_topic.topic.labels | ||
description = "Labels assigned to the Pub/Sub topic" | ||
} |
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.
Let's remove these unless necessary since there are just redirecting inputs as outputs
This PR simply creates 2 modules,
pub
modules creates topics and it's dependencysub
modules creates subscription and related iam bindings and other dependency.We will have follow up PRs to add IAM more bindings in each of the modules and adding connection for ADC.