FLINT.Cloud
FLINT.Cloud copied to clipboard
Generate globally unique Google Cloud Storage bucket name
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" {
To fix, a unique bucket name can be generated and passed to services using environment variables
@arnav-t Yeah. Also, we have to make sure the generated bucket name follows Bucket naming guidelines.