We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5489cb commit 94726b0Copy full SHA for 94726b0
ecr-repositories.tf
@@ -7,7 +7,7 @@ resource "aws_ecr_repository" "default" {
7
8
encryption_configuration {
9
encryption_type = "KMS"
10
- kms_key = try(aws_kms_key.ecr[0].arn, false) ? aws_kms_key.ecr[0].arn : null
+ kms_key = try(var.ecr_cmk_encryption, false) ? aws_kms_key.ecr[0].arn : null
11
}
12
13
depends_on = [aws_kms_alias.ecr]
0 commit comments