From 4dbeca85102c9ed916b407df8aa22a7947ea747d Mon Sep 17 00:00:00 2001 From: Jay Whitwell Date: Wed, 5 Jun 2024 12:47:49 +0100 Subject: [PATCH] add local environment name to kms key --- terraform/environment/elasticache.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environment/elasticache.tf b/terraform/environment/elasticache.tf index 809a24d1..95051118 100644 --- a/terraform/environment/elasticache.tf +++ b/terraform/environment/elasticache.tf @@ -153,7 +153,7 @@ data "aws_iam_policy_document" "elasticache_kms_key" { } resource "aws_kms_alias" "elasticache_kms_alias" { - name = "alias/elasticache-lpa" + name = "alias/elasticache-lpa-${local.environment}" target_key_id = aws_kms_key.elasticache_kms.id }