Skip to content

Commit

Permalink
read state
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Aug 29, 2024
1 parent fdf8547 commit 59b06d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions deployment/modules/gcp/cloudbuild/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,9 @@ resource "google_project_iam_member" "cloudrun_deployer" {
role = "roles/run.developer"
member = "serviceAccount:${google_service_account.cloudbuild_service_account.email}"
}

resource "google_storage_bucket_iam_member" "member" {
bucket = "${var.project_id}-cloudbuild-${var.env}-terraform-state"
role = "roles/storage.objectViewer"
member = "serviceAccount:${google_service_account.cloudbuild_service_account.email}"
}

0 comments on commit 59b06d1

Please sign in to comment.