andrewperlas / gcp-resume

Cloud resume challenge hosted on GCP
0 stars 0 forks source link

Subsequent terraform apply steps show as failure if resource already exists on GCP infra #4

Closed andrewperlas closed 6 months ago

andrewperlas commented 6 months ago
╷
│ Error: googleapi: Error 409: Your previous request to create the named bucket succeeded and you already own it., conflict
│ 
│   with google_storage_bucket.static_website,
│   on main.tf line 10, in resource "google_storage_bucket" "static_website":
│   10: resource "google_storage_bucket" "static_website" {
│ 
╵

Might be a result of not having a tfstate file? Possible solution is to configure a backend to store the state file (use a separate gcp bucket for the state file?)