@@ -45,14 +45,18 @@ module "rds-integration" {
4545module "rds-staging" {
4646 source = " github.com/alphagov/terraform-govuk-tfe-workspacer"
4747
48- organization = var. organization
49- workspace_name = " rds-staging"
50- workspace_desc = " This module manages AWS resources for creating RDS databases."
51- workspace_tags = [" staging" , " rds" , " eks" , " aws" ]
52- terraform_version = var. terraform_version
53- execution_mode = " remote"
54- working_directory = " /terraform/deployments/rds/"
55- trigger_patterns = [" /terraform/deployments/rds/**/*" ]
48+ organization = var. organization
49+ workspace_name = " rds-staging"
50+ workspace_desc = " This module manages AWS resources for creating RDS databases."
51+ workspace_tags = [" staging" , " rds" , " eks" , " aws" ]
52+ terraform_version = var. terraform_version
53+ execution_mode = " remote"
54+ working_directory = " /terraform/deployments/rds/"
55+ trigger_patterns = [
56+ " /terraform/deployments/rds/**/*" ,
57+ " /terraform/variables/staging/common.tfvars" ,
58+ " /terraform/variables/staging/rds.tfvars"
59+ ]
5660 global_remote_state = true
5761
5862 project_name = " govuk-infrastructure"
@@ -71,24 +75,31 @@ module "rds-staging" {
7175 TF_CLI_ARGS_apply = " -parallelism=30"
7276 }
7377
78+ tfvars_files = [
79+ " staging/common.tfvars" ,
80+ " staging/rds.tfvars"
81+ ]
82+
7483 variable_set_ids = [
75- local . aws_credentials [" staging" ],
76- module . variable-set-staging . id ,
77- module . variable-set-rds-staging . id
84+ local . aws_credentials [" staging" ]
7885 ]
7986}
8087
8188module "rds-production" {
8289 source = " github.com/alphagov/terraform-govuk-tfe-workspacer"
8390
84- organization = var. organization
85- workspace_name = " rds-production"
86- workspace_desc = " This module manages AWS resources for creating RDS databases."
87- workspace_tags = [" production" , " rds" , " eks" , " aws" ]
88- terraform_version = var. terraform_version
89- execution_mode = " remote"
90- working_directory = " /terraform/deployments/rds/"
91- trigger_patterns = [" /terraform/deployments/rds/**/*" ]
91+ organization = var. organization
92+ workspace_name = " rds-production"
93+ workspace_desc = " This module manages AWS resources for creating RDS databases."
94+ workspace_tags = [" production" , " rds" , " eks" , " aws" ]
95+ terraform_version = var. terraform_version
96+ execution_mode = " remote"
97+ working_directory = " /terraform/deployments/rds/"
98+ trigger_patterns = [
99+ " /terraform/deployments/rds/**/*" ,
100+ " /terraform/variables/production/common.tfvars" ,
101+ " /terraform/variables/production/rds.tfvars"
102+ ]
92103 global_remote_state = true
93104
94105 project_name = " govuk-infrastructure"
@@ -107,9 +118,12 @@ module "rds-production" {
107118 TF_CLI_ARGS_apply = " -parallelism=30"
108119 }
109120
121+ tfvars_files = [
122+ " production/common.tfvars" ,
123+ " production/rds.tfvars"
124+ ]
125+
110126 variable_set_ids = [
111- local . aws_credentials [" production" ],
112- module . variable-set-production . id ,
113- module . variable-set-rds-production . id
127+ local . aws_credentials [" production" ]
114128 ]
115129}
0 commit comments