FLINT.Cloud icon indicating copy to clipboard operation
FLINT.Cloud copied to clipboard

Generate globally unique Google Cloud Storage bucket name

Open iamrajiv opened this issue 3 years ago • 2 comments

Currently, the Google Cloud Storage bucket name is hardcoded with the name simulation_data_flint-cloud this might give an error something like this

│ Error: googleapi: Error 409: Sorry, that name is not available. Please try a different one., conflict
│
│   with google_storage_bucket.simulation_data_flint-cloud,
│   on main.tf line 259, in resource "google_storage_bucket" "simulation_data_flint-cloud":
│  259: resource "google_storage_bucket" "simulation_data_flint-cloud" {

iamrajiv avatar Oct 13 '21 03:10 iamrajiv

To fix, a unique bucket name can be generated and passed to services using environment variables

arnav-t avatar Oct 13 '21 03:10 arnav-t

@arnav-t Yeah. Also, we have to make sure the generated bucket name follows Bucket naming guidelines.

iamrajiv avatar Oct 13 '21 04:10 iamrajiv