Skip to content

Commit

Permalink
Add staging and production CSP reporter workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
samsimpson1 committed Jan 27, 2025
1 parent 0a25e4c commit 6cec068
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions terraform/deployments/tfc-configuration/csp-reporter.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,65 @@ module "csp-reporter-integration" {
"common-integration"
]
}

module "csp-reporter-staging" {
source = "alexbasista/workspacer/tfe"
version = "0.12.0"

organization = var.organization
workspace_name = "csp-reporter-staging"
workspace_desc = "CSP reporter lambda and Firehose resources"
workspace_tags = ["staging", "csp-reporter", "eks", "aws"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/csp-reporter/"
trigger_patterns = ["/terraform/deployments/csp-reporter/**/*"]

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 = [
"aws-credentials-staging",
"common",
"common-staging"
]
}

module "csp-reporter-production" {
source = "alexbasista/workspacer/tfe"
version = "0.12.0"

organization = var.organization
workspace_name = "csp-reporter-production"
workspace_desc = "CSP reporter lambda and Firehose resources"
workspace_tags = ["production", "csp-reporter", "eks", "aws"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/csp-reporter/"
trigger_patterns = ["/terraform/deployments/csp-reporter/**/*"]

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 = [
"aws-credentials-production",
"common",
"common-production"
]
}

0 comments on commit 6cec068

Please sign in to comment.