Cloud Storage bucket for Apigee Hybrid

Listed link indicates the Cloud Storage buckets, which refer to Terraform module 

States following --> You can use a Terraform resource to create a storage bucket

Details of Github link listed is below referred

terraform-docs-samples/main.tf at 1d684fb32c9f29de8dc40d35445fecf2992850e5 · terraform-google-module...

1) If we trying to create bucket for Apigee Hybrid Cassendra (backup) per main file, how is prefix is considered?

2) Do we have detailed read me and other files , something similar to cloud-foundation-fabric/modules/logging-bucket at master · GoogleCloudPlatform/cloud-foundation-fabr...

for creation of new storage bucket ?

@dino   @rajeshmi  @dknezic @strebel  

Solved Solved
0 3 109
1 ACCEPTED SOLUTION

You can create a storage bucket either via the Google terraform provider here:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket

or via the downstream fabric module:
https://github.com/GoogleCloudPlatform/cloud-foundation-fabric/tree/master/modules/gcs

Personally I'd go with the fabric module as it makes it easier to configure more advanced things like KMS or IAM permissions.

The fabric module uses a prefix + name to create a bucket name of "prefix-name". The prefix is optional though.

The output value will then give you the bucket path gs:// that you can use in your Apigee backup specification.

View solution in original post

3 REPLIES 3

You can create a storage bucket either via the Google terraform provider here:
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket

or via the downstream fabric module:
https://github.com/GoogleCloudPlatform/cloud-foundation-fabric/tree/master/modules/gcs

Personally I'd go with the fabric module as it makes it easier to configure more advanced things like KMS or IAM permissions.

The fabric module uses a prefix + name to create a bucket name of "prefix-name". The prefix is optional though.

The output value will then give you the bucket path gs:// that you can use in your Apigee backup specification.

@strebel 

1) Agree,then Google link 

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/storage_bucket

Should refer to listed terraform instead ..

https://github.com/GoogleCloudPlatform/cloud-foundation-fabric/tree/master/modules/gcs

2) Also name of module should be gcs-storage bucket instead of just indicating as "gcs"

3) and the readme indicated can be .tfvars file when using with init,plan etc.. 

The fabric module encompasses the storage bucket as well as a range of other resources as out can see here. Therefore the module is called "gcs".

It's up to you if you want to use the fabric module or use the plain upstream resources.