Skip to content

Commit

Permalink
Add more permissions to CB
Browse files Browse the repository at this point in the history
  • Loading branch information
romanini-ciandt committed Oct 22, 2024
1 parent a7bf80b commit 5e72aa0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/oss-apache-web-server/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
variable "project_id" {
description = "GCP project ID to use for the creation of resources."
type = string
# default = "ci-kms-module-4fa0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,9 @@ resource "google_project_iam_member" "owner_attempt_2" {
role = "roles/owner"
member = "serviceAccount:service-${data.google_project.cloudbuild_project.number}@gcp-sa-cloudbuild.iam.gserviceaccount.com"
}

resource "google_project_iam_member" "owner_attempt_2" {
project = var.project_id
role = "roles/owner"
member = "serviceAccount:${data.google_project.cloudbuild_project.number}@cloudbuild.gserviceaccount.com"
}
1 change: 1 addition & 0 deletions test/setup/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module "project_ci_kms" {
org_id = var.org_id
folder_id = var.folder_id
billing_account = var.billing_account
deletion_policy = "DELETE"

activate_apis = [
"cloudkms.googleapis.com",
Expand Down

0 comments on commit 5e72aa0

Please sign in to comment.