Skip to content

Commit

Permalink
Add fastly-logs project
Browse files Browse the repository at this point in the history
  • Loading branch information
MuriloDalRi committed Oct 2, 2024
1 parent 0a24e78 commit c77fd9b
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions terraform/deployments/tfc-configuration/fastly-logs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
module "fastly-logs-integration" {
source = "alexbasista/workspacer/tfe"
version = "0.10.0"

organization = var.organization
workspace_name = "fastly-logs-integration"
workspace_desc = "This module manages the Fastly logging data which is sent from Fastly to S3."
workspace_tags = ["integration", "fastly-logs", "aws"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/fastly-logs/"
trigger_patterns = ["/terraform/deployments/fastly-logs/**/*"]
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 Non-Production" = "write"
"GOV.UK Production" = "write"
}

variable_set_names = [
"aws-credentials-integration",
"common",
"common-integration"
]
}

module "fastly-logs-staging" {
source = "alexbasista/workspacer/tfe"
version = "0.10.0"

organization = var.organization
workspace_name = "fastly-logs-staging"
workspace_desc = "This module manages the Fastly logging data which is sent from Fastly to S3."
workspace_tags = ["staging", "fastly-logs", "aws"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/fastly-logs/"
trigger_patterns = ["/terraform/deployments/fastly-logs/**/*"]
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 = [
"aws-credentials-staging",
"common",
"common-staging"
]
}

module "fastly-logs-production" {
source = "alexbasista/workspacer/tfe"
version = "0.10.0"

organization = var.organization
workspace_name = "fastly-logs-production"
workspace_desc = "This module manages the Fastly logging data which is sent from Fastly to S3."
workspace_tags = ["production", "fastly-logs", "aws"]
terraform_version = var.terraform_version
execution_mode = "remote"
working_directory = "/terraform/deployments/fastly-logs/"
trigger_patterns = ["/terraform/deployments/fastly-logs/**/*"]
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 = [
"aws-credentials-production",
"common",
"common-production"
]
}

0 comments on commit c77fd9b

Please sign in to comment.