Skip to content

Commit

Permalink
Merge pull request #1434 from alphagov/samsimpson1/bigquery
Browse files Browse the repository at this point in the history
Add staging and production workspaces for cdn-analytics
  • Loading branch information
samsimpson1 authored Aug 22, 2024
2 parents f109925 + 93685b0 commit 074b24e
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions terraform/deployments/tfc-configuration/cdn-analytics.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,67 @@ module "cdn-analytics-integration" {
"common-integration"
]
}

module "cdn-analytics-staging" {
source = "alexbasista/workspacer/tfe"
version = "0.10.0"

organization = var.organization
workspace_name = "cdn-analytics-staging"
workspace_desc = "BigQuery infrastructure for Data Insight & Analytics"
workspace_tags = ["staging", "cdn-analytics", "gcp"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/cdn-analytics/"
trigger_patterns = ["/terraform/deployments/cdn-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"
}

variable_set_names = [
"gcp-credentials-staging",
"common",
"common-staging"
]
}

module "cdn-analytics-production" {
source = "alexbasista/workspacer/tfe"
version = "0.10.0"

organization = var.organization
workspace_name = "cdn-analytics-production"
workspace_desc = "BigQuery infrastructure for Data Insight & Analytics"
workspace_tags = ["production", "cdn-analytics", "gcp"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/cdn-analytics/"
trigger_patterns = ["/terraform/deployments/cdn-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"
}

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

0 comments on commit 074b24e

Please sign in to comment.