terraform-google-project-factory icon indicating copy to clipboard operation
terraform-google-project-factory copied to clipboard

export bucket_name in output

Open leeyc0 opened this issue 3 years ago • 1 comments

TL;DR

Module output should export bucket_name too, to make further operations on the created bucket easier. (For example, bucket IAM configurations.) Without exporting bucket_name, operations that depends on the created bucket will either need a trimprefix(module.project-factory.project_bucket_url[0], "gs://") in bucket_name argument or a depend_on explicitly.

Terraform Resources

No response

Detailed design

No response

Additional information

No response

leeyc0 avatar Jan 09 '22 06:01 leeyc0

We would probably just output the entire bucket resource.

Since this has an easy workaround, marking this as P4. We would be happy to review a PR though.

morgante avatar Jan 10 '22 21:01 morgante