This optional module is used to assign pubsub_topic roles
module "pubsub_topic-iam-bindings" {
source = "terraform-google-modules/iam/google//modules/pubsub_topics_iam"
project = "my-pubsub_topic_project"
pubsub_topics = ["my-pubsub_topic_one", "my-pubsub_topic_two"]
mode = "authoritative"
bindings = {
"roles/pubsub.publisher" = [
"serviceAccount:[email protected]",
"group:[email protected]",
"user:[email protected]",
]
"roles/pubsub.viewer" = [
"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 |
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_topics |
PubSub Topics list to add the IAM policies/bindings |
list(string) |
<list> |
no |
Name |
Description |
members |
Members which were bound to the PubSub Topics. |
pubsub_topics |
PubSub Topics which received for bindings. |
roles |
Roles which were assigned to members. |