From a23c89cf129b4903060caf1c741b7f4f6af47339 Mon Sep 17 00:00:00 2001 From: SahidKhan89 Date: Mon, 30 Oct 2023 11:37:38 +0000 Subject: [PATCH] CC-2147: Added Conc Tier Instance and SG --- .../ccms-ebs-upgrade/ec2-oracle_ebs_conc.tf | 6 +++--- terraform/environments/ccms-ebs-upgrade/r53.tf | 11 +++++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/terraform/environments/ccms-ebs-upgrade/ec2-oracle_ebs_conc.tf b/terraform/environments/ccms-ebs-upgrade/ec2-oracle_ebs_conc.tf index fb36e8e7c39..7f478cb51eb 100644 --- a/terraform/environments/ccms-ebs-upgrade/ec2-oracle_ebs_conc.tf +++ b/terraform/environments/ccms-ebs-upgrade/ec2-oracle_ebs_conc.tf @@ -115,7 +115,7 @@ resource "aws_ebs_volume" "conc_home" { availability_zone = "eu-west-2a" size = local.application_data.accounts[local.environment].ebs_size_ebsconc_home type = "io2" - iops = local.application_data.accounts[local.environment].ebs_default_iops + iops = 3000 encrypted = true kms_key_id = data.aws_kms_key.ebs_shared.key_id tags = merge(local.tags, @@ -136,7 +136,7 @@ resource "aws_ebs_volume" "conc_stage" { availability_zone = "eu-west-2a" size = local.application_data.accounts[local.environment].ebs_size_ebsconc_stage type = "io2" - iops = local.application_data.accounts[local.environment].ebs_default_iops + iops = 3000 encrypted = true kms_key_id = data.aws_kms_key.ebs_shared.key_id tags = merge(local.tags, @@ -157,7 +157,7 @@ resource "aws_ebs_volume" "conc_temp" { availability_zone = "eu-west-2a" size = local.application_data.accounts[local.environment].ebs_size_ebsconc_temp type = "io2" - iops = local.application_data.accounts[local.environment].ebs_default_iops + iops = 3000 encrypted = true kms_key_id = data.aws_kms_key.ebs_shared.key_id tags = merge(local.tags, diff --git a/terraform/environments/ccms-ebs-upgrade/r53.tf b/terraform/environments/ccms-ebs-upgrade/r53.tf index a2aad489114..99206516d72 100644 --- a/terraform/environments/ccms-ebs-upgrade/r53.tf +++ b/terraform/environments/ccms-ebs-upgrade/r53.tf @@ -7,3 +7,14 @@ resource "aws_route53_record" "ebsdb" { ttl = 300 records = [aws_instance.ec2_oracle_ebs.private_ip] } + + +## EBS Conc +resource "aws_route53_record" "ebsconc" { + provider = aws.core-vpc + zone_id = data.aws_route53_zone.external.zone_id + name = "ccms-ebs-conc-upgrade.${var.networking[0].business-unit}-${local.environment}.modernisation-platform.service.justice.gov.uk" + type = "A" + ttl = 300 + records = [aws_instance.ec2_oracle_ebs.private_ip] +}