terraform-google-modules/terraform-google-cloud-storage

simple_bucket - no possibility to add multiple members to role in one statement

zolech opened this issue · 4 comments

Hi,

It seems that I cannot add multiple members to a role. I tried these:
1)
{ role = "roles/storage.legacyBucketOwner" member = "projectEditor:${module.project-factory.project_id}, projectOwner:${module.project-factory.project_id}" }
2)
{ role = "roles/storage.legacyBucketOwner" member = ["projectEditor:${module.project-factory.project_id}", "projectOwner:${module.project-factory.project_id}"] }

Do I have to specify this statement twice for the same role but with different member or am I missing something?

Yes, you have to specify each member separately.

Thank for the response @morgante . Can it be worked out to pass an array of members or there are some difficulties preventing this that I am not aware of? I could look into it if it makes any sense.

Theoretically it could, but I'm not sure it's a big enough improvement to justify breaking the current interface.

Ok, I suppose switching to iam storage_bucket submodule would be less time consuming.