Skip to content

Commit

Permalink
Merge pull request #1425 from joreilly/tfstate
Browse files Browse the repository at this point in the history
Do not track the tf bucket in tf, it doesn't work Also make the landing-page bucket public
  • Loading branch information
martinbonnin authored Aug 29, 2024
2 parents ac0fd1e + 6724599 commit 34e642b
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions backend/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,6 @@ resource "google_cloud_run_service_iam_binding" "import" {
]
}

resource "google_storage_bucket" "tfstate" {
provider = google-beta
name = "confetti-tfstate"
force_destroy = false
location = var.region
storage_class = "STANDARD"
versioning {
enabled = true
}
}

resource "google_storage_bucket" "landing_page" {
provider = google-beta
name = "confetti-landing-page"
Expand All @@ -366,6 +355,13 @@ resource "google_storage_bucket" "landing_page" {
}
}

resource "google_storage_bucket_iam_member" "member" {
provider = google-beta
bucket = google_storage_bucket.landing_page.name
role = "roles/storage.objectViewer"
member = "allUsers"
}

output "ip_addr" {
value = google_compute_global_address.default.address
}

0 comments on commit 34e642b

Please sign in to comment.