diff --git a/terraform/environments/ccms-ebs-upgrade/application_variables.json b/terraform/environments/ccms-ebs-upgrade/application_variables.json index 3fafe74446c..17c8109723b 100644 --- a/terraform/environments/ccms-ebs-upgrade/application_variables.json +++ b/terraform/environments/ccms-ebs-upgrade/application_variables.json @@ -4,7 +4,11 @@ "short_env": "dev", "dns": "laa-development", "ses_domain_identity": "dev.legalservices.gov.uk", - "instance-scheduling": "skip-scheduling", + "instance-scheduling-accessgate": "skip-scheduling", + "instance-scheduling-ebsapps": "skip-scheduling", + "instance-scheduling-ebsconc": "skip-scheduling", + "instance-scheduling-ebsdb": "skip-scheduling", + "instance-scheduling-webgate": "skip-scheduling", "ec2_oracle_instance_type_ebsdb_test": "x2iedn.8xlarge", "ec2_oracle_instance_type_ebsdb": "m5d.4xlarge", "ec2_oracle_instance_cores_ebsdb": "8", @@ -100,7 +104,12 @@ "ebs_size_ebsconc_home": 100, "ebs_size_ebsconc_stage": 100, "ebs_size_ebsconc_temp": 100, - "ebs_backup_snapshot_id": "snap-0cdfe4b46c1e34ebb" + "ebs_backup_snapshot_id": "snap-0cdfe4b46c1e34ebb", + "instance_role_accessgate": "accessgate", + "instance_role_ebsapps": "apps", + "instance_role_ebsconc": "conc", + "instance_role_ebsdb": "db", + "instance_role_webgate": "webgate" } }, "webgate_ebs": { diff --git a/terraform/environments/ccms-ebs-upgrade/ccms-resource-groups.tf b/terraform/environments/ccms-ebs-upgrade/ccms-resource-groups.tf new file mode 100644 index 00000000000..a868287a62c --- /dev/null +++ b/terraform/environments/ccms-ebs-upgrade/ccms-resource-groups.tf @@ -0,0 +1,119 @@ +resource "aws_resourcegroups_group" "accessgate" { + name = "accessgate" + description = "Accessgate instances" + + resource_query { + query = <