Skip to content

Commit

Permalink
read state
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter committed Aug 30, 2024
1 parent 5ab1a96 commit d31852d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployment/modules/gcp/cloudbuild/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ resource "google_cloudbuild_trigger" "docker" {
"plan",
"--terragrunt-include-dir", "./deployment/live/gcp/*/*/",
"--terragrunt-disable-bucket-update",
"--lock=false"
]
env = [
"TF_IN_AUTOMATION=1",
Expand Down Expand Up @@ -128,3 +129,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 d31852d

Please sign in to comment.