Skip to content

Commit

Permalink
Merge pull request #1462 from alphagov/add-gcp-workspace
Browse files Browse the repository at this point in the history
add workspace config for GCP projects
  • Loading branch information
samsimpson1 authored Oct 25, 2024
2 parents bb1a5ba + 8fb7e1f commit 1cbc784
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions terraform/deployments/tfc-configuration/gcp-projects.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module "gcp-ga4-analytics" {
source = "alexbasista/workspacer/tfe"
version = "0.10.0"

organization = var.organization
workspace_name = "gcp-ga4-analytics"
workspace_desc = "GCP project management for the GA4 production project"
workspace_tags = ["production", "ga4-analytics", "gcp"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/ga4-analytics/"
trigger_patterns = ["/terraform/deployments/ga4-analytics/**/*"]
global_remote_state = true

project_name = "govuk-infrastructure"
vcs_repo = {
identifier = "alphagov/govuk-infrastructure"
branch = "main"
oauth_token_id = data.tfe_oauth_client.github.oauth_token_id
}

team_access = {
"GOV.UK Production" = "write"
"Google Cloud Data Production" = "write"
"GOV.UK Non-Production" = "read"
}

variable_set_names = [
"gcp-credentials-production"
]
}

0 comments on commit 1cbc784

Please sign in to comment.