Skip to content

Files

Latest commit

 

History

History
 
 

multiple_buckets

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Simple Example

This example illustrates how to use the cloud-storage module.

Inputs

Name Description Type Default Required
bucket_policy_only Disable ad-hoc ACLs on specified buckets. Defaults to true. Map of lowercase unprefixed name => boolean map(string) {} no
folders Top level bucket folders. Map of lowercase unprefixed name => list of folders to create. map {} no
names Names of the buckets to create. list(string)
[
"one",
"two"
]
no
project_id The ID of the project in which to provision resources. string n/a yes

Outputs

Name Description
names Bucket names.
names_list List of bucket names.

To provision this example, run the following from within this directory:

  • terraform init to get the plugins
  • terraform plan to see the infrastructure plan
  • terraform apply to apply the infrastructure build
  • terraform destroy to destroy the built infrastructure