From d9de20cb4f50fd6966427e2a87e07ba493d83730 Mon Sep 17 00:00:00 2001 From: Kevin Lefevre Date: Fri, 29 Apr 2022 10:37:30 +0200 Subject: [PATCH] fix: KMS alias cannot start with alias/aws Related to https://github.com/hashicorp/terraform-provider-aws/pull/13000 Signed-off-by: Kevin Lefevre --- modules/aws/aws-ebs-csi-driver.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/aws/aws-ebs-csi-driver.tf b/modules/aws/aws-ebs-csi-driver.tf index c672e807e..453d2b92d 100644 --- a/modules/aws/aws-ebs-csi-driver.tf +++ b/modules/aws/aws-ebs-csi-driver.tf @@ -209,7 +209,7 @@ resource "aws_kms_key" "aws-ebs-csi-driver" { resource "aws_kms_alias" "aws-ebs-csi-driver" { count = local.aws-ebs-csi-driver.enabled && local.aws-ebs-csi-driver.use_kms && local.aws-ebs-csi-driver.create_kms_key ? 1 : 0 - name = "alias/aws-ebs-csi-driver-${local.aws-ebs-csi-driver.override_kms_alias != null ? local.aws-ebs-csi-driver.override_kms_alias : var.cluster-name}" + name = "alias/ebs-csi-driver-${local.aws-ebs-csi-driver.override_kms_alias != null ? local.aws-ebs-csi-driver.override_kms_alias : var.cluster-name}" target_key_id = aws_kms_key.aws-ebs-csi-driver.0.id }