Module pubsub_subscription IAM
This optional module is used to assign pubsub_subscription roles
module "pubsub_subscription-iam-bindings" {
source = "terraform-google-modules/iam/google//modules/pubsub_subscriptions_iam"
project = "my-pubsub_subscription_project"
pubsub_subscriptions = ["my-pubsub_subscription_one", "my-pubsub_subscription_two"]
mode = "additive"
bindings = {
"roles/pubsub.viewer" = [
"serviceAccount:[email protected] ",
"group:[email protected] ",
"user:[email protected] ",
]
"roles/pubsub.editor" = [
"serviceAccount:[email protected] ",
"group:[email protected] ",
"user:[email protected] ",
]
}
}
Name
Description
Type
Default
Required
bindings
Map of role (key) and list of members (value) to add the IAM policies/bindings
map(list(string))
n/a
yes
mode
Mode for adding the IAM policies/bindings, additive and authoritative
string
"additive"
no
project
Project to add the IAM policies/bindings
string
""
no
pubsub_subscriptions
PubSub Subscriptions list to add the IAM policies/bindings
list(string)
[]
no
Name
Description
members
Members which were bound to the PubSub Subscription.
pubsub_subscriptions
PubSub Subscriptions which received bindings.
roles
Roles which were assigned to members.