diff --git a/vpc/main.tf b/vpc/main.tf index 122d788d9..296dae997 100644 --- a/vpc/main.tf +++ b/vpc/main.tf @@ -113,7 +113,7 @@ locals { resource "aws_ssm_parameter" "combined_nat_gateway_eips" { # checkov:skip=CKV_AWS_337:Ensure SSM parameters are using KMS CMK. Related ticket: https://uktrade.atlassian.net/browse/DBTP-946 # checkov:skip=CKV2_AWS_34:AWS SSM Parameter should be Encrypted. Related ticket: https://uktrade.atlassian.net/browse/DBTP-946 - name = "/${var.arg_name}/ADDITIONAL_IP_LIST" + name = "/${var.arg_name}/EGRESS_IPS" type = "String" value = join(",", local.nat_gateway_eips) tags = local.tags diff --git a/vpc/tests/unit.tftest.hcl b/vpc/tests/unit.tftest.hcl index ae761f6c8..d6f8389a4 100644 --- a/vpc/tests/unit.tftest.hcl +++ b/vpc/tests/unit.tftest.hcl @@ -47,8 +47,8 @@ run "aws_vpc_unit_test" { ### nat_gateway_eip aws_ssm_parameter ### assert { - condition = aws_ssm_parameter.combined_nat_gateway_eips.name == "/vpc-test-name/ADDITIONAL_IP_LIST" - error_message = "Should be: /vpc-test-name/ADDITIONAL_IP_LIST" + condition = aws_ssm_parameter.combined_nat_gateway_eips.name == "/vpc-test-name/EGRESS_IPS" + error_message = "Should be: /vpc-test-name/EGRESS_IPS" } assert {