Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 2.33 KB

README.md

File metadata and controls

46 lines (33 loc) · 2.33 KB

Terraform google cloud storage module

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.

Requirements

No requirements.

Providers

Name Version
google 3.0

Modules

No modules.

Resources

Name Type
google_storage_bucket.storage_bucket resource
google_storage_bucket_iam_member.storage_bucket_iam_member resource

Inputs

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

Outputs

Name Description
bucket_name name of the google cloud storage bucket