This example illustrates how to use the cloud-storage
module.
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) |
[ |
no |
project_id | The ID of the project in which to provision resources. | string |
n/a | yes |
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 pluginsterraform plan
to see the infrastructure planterraform apply
to apply the infrastructure buildterraform destroy
to destroy the built infrastructure