Skip to content

Commit

Permalink
Added cloudbuild API permission
Browse files Browse the repository at this point in the history
  • Loading branch information
BSick7 committed Mar 20, 2024
1 parent 7d9f916 commit 285877f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions gcp/tf/gcp.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,25 @@ locals {
region = data.google_client_config.this.region
region_prefix = lower(substr(local.region, 0, 2))
}

resource "google_project_service" "run" {
service = "run.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
resource "google_project_service" "cloudbuild" {
service = "cloudbuild.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
resource "google_project_service" "function" {
service = "cloudfunctions.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}
// Artifact Registry is needed to create a Cloud Function (db-admin) even though we're not using it
resource "google_project_service" "artifact_registry" {
service = "artifactregistry.googleapis.com"
disable_dependent_services = false
disable_on_destroy = false
}

0 comments on commit 285877f

Please sign in to comment.