Skip to content

Commit

Permalink
Merge pull request #110 from fnf-org/ev1lm0nk3y/ticket-deploy
Browse files Browse the repository at this point in the history
Adjusting the service account resources
  • Loading branch information
ev1lm0nk3y authored May 1, 2024
2 parents f913f35 + d32875f commit ffbc64a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deployment/gcp/secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ resource "google_secret_manager_secret_version" "ticket_booth_db" {

lifecycle {
# Don't want this resource overwriting the latest value if that changes
ignore_changes = [
google_secret_manager_secret_version.ticket_booth_db.version,
]
ignore_changes = all
}
}

Expand All @@ -35,21 +33,23 @@ resource "google_secret_manager_secret" "ticket_booth_app" {
}

# Make sure the secrets have policies allowing ExternalSecrets to fetch them.
resource "google_secret_manager_secret_iam_policy_binding" "ticket_booth_db" {
resource "google_secret_manager_secret_iam_binding" "ticket_booth_db" {
project = var.project_id
secret_id = google_secret_manager_secret.ticket_booth_db.id
role = "roles/secretmanager.secretAccessor"
memebers = [
var.secret_manager_service_account,

members = [
"serviceAccount:${var.secret_manager_service_account}",
]
}

resource "google_secret_manager_secret_iam_policy_binding" "ticket_booth_app" {
resource "google_secret_manager_secret_iam_binding" "ticket_booth_app" {
project = var.project_id
secret_id = google_secret_manager_secret.ticket_booth_app.id
role = "roles/secretmanager.secretAccessor"
memebers = [
var.secret_manager_service_account,

members = [
"serviceAccount:${var.secret_manager_service_account}",
]
}

Expand Down

0 comments on commit ffbc64a

Please sign in to comment.