Skip to content

Commit 5f638a2

Browse files
Merge pull request #5855 from nhsuk/pentest_environment_setup
Setup the pentest environment
2 parents b16682e + b61e251 commit 5f638a2

5 files changed

Lines changed: 29 additions & 1 deletion

File tree

.github/workflows/deploy-application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ on:
1717
- sandbox-alpha
1818
- sandbox-beta
1919
- performance
20+
- pentest
2021
server_types:
2122
description: Server types to deploy
2223
required: true

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ on:
3434
- sandbox-alpha
3535
- sandbox-beta
3636
- performance
37+
- pentest
3738
server_types:
3839
description: Server types to deploy
3940
required: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bucket = "nhse-mavis-terraform-state"
2+
key = "terraform-pentest.tfstate"

terraform/app/env/pentest.tfvars

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
environment = "pentest"
2+
rails_master_key_path = "/copilot/mavis/secrets/STAGING_RAILS_MASTER_KEY"
3+
mise_sops_age_key_path = "/copilot/mavis/secrets/STAGING_MISE_SOPS_AGE_KEY"
4+
dns_certificate_arn = null
5+
resource_name = {
6+
rds_security_group = "mavis-pentest-rds-sg"
7+
loadbalancer = "mavis-pentest-alb"
8+
lb_security_group = "mavis-pentest-alb-sg"
9+
cloudwatch_vpc_log_group = "mavis-pentest-FlowLogs"
10+
}
11+
12+
http_hosts = {
13+
MAVIS__HOST = "pentest.mavistesting.com"
14+
MAVIS__GIVE_OR_REFUSE_CONSENT_HOST = "pentest.mavistesting.com"
15+
}
16+
17+
max_aurora_capacity_units = 64
18+
container_insights = "enhanced"
19+
20+
enable_enhanced_db_monitoring = true
21+
enable_backup_to_vault = true
22+
23+
minimum_reporting_replicas = 2
24+
maximum_reporting_replicas = 4

terraform/app/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variable "environment" {
1111

1212
validation {
1313
condition = contains([
14-
"sandbox-alpha", "sandbox-beta", "qa", "performance", "test", "training", "preview", "production"
14+
"sandbox-alpha", "sandbox-beta", "qa", "performance", "test", "training", "preview", "pentest", "production"
1515
], var.environment)
1616
error_message = "Valid values for environment: sandbox-alpha, sandbox-beta, qa, performance, test, training, preview, production."
1717
}

0 commit comments

Comments
 (0)