This is a Dynamic modules in Terraform to create a GCS bucket and assign basic permissions to the users.
- main.tf : contains all the resources which will be created with
terraform apply
command. - variables.tf : contains all variables required to create the resources.
- outputs.tf : contains output attributes of the resources.
No requirements.
Name | Version |
---|---|
3.0 |
No modules.
Name | Type |
---|---|
google_storage_bucket.storage_bucket | resource |
google_storage_bucket_iam_member.storage_bucket_iam_member | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
bucket_policy_only | Enables Bucket Policy Only access to a bucket. | bool |
true |
no |
environment | Name of the environment where infrastructure being built. | string |
n/a | yes |
name | Name is the prefix to use for resources that needs to be created. | string |
n/a | yes |
project_id | The ID of the project to create the bucket in. | string |
n/a | yes |
region | The region where terraform builds resources. | string |
n/a | yes |
role | Role of the google storage bucket iam member | string |
"roles/storage.admin" |
no |
service_account | service account email address | string |
n/a | yes |
storage_class | Storage class for the gcs bucket | string |
null |
no |
Name | Description |
---|---|
bucket_name | name of the google cloud storage bucket |