This example illustrates how to use the subnets_iam
submodule
Name | Description | Type | Default | Required |
---|---|---|---|---|
group_email | Email for group to receive roles (ex. [email protected]) | string |
n/a | yes |
project | The project where the subnet resides | string |
n/a | yes |
region | The region where the subnet resides | string |
n/a | yes |
sa_email | Email for Service Account to receive roles (Ex. [email protected]) | string |
n/a | yes |
subnet_one | First subnet id to add the IAM policies/bindings | string |
n/a | yes |
subnet_two | Second subnet id to add the IAM policies/bindings | string |
n/a | yes |
user_email | Email for group to receive roles (Ex. [email protected]) | string |
n/a | yes |
No output.
The module expects the subnets to be provided fully qualified. (ex: projects/<project_id>/regions/<region>/subnetworks/<subnet_name>
) This example takes your inputted project, region and subnets to form the fully qualified subnet ids.