Skip to content

Commit

Permalink
Fix KMS key parameter (#11)
Browse files Browse the repository at this point in the history
Co-authored-by: Luiz Rocha <[email protected]>
  • Loading branch information
lzrocha and lzrocha-brighte authored Feb 23, 2022
1 parent c5489cb commit 94726b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecr-repositories.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ resource "aws_ecr_repository" "default" {

encryption_configuration {
encryption_type = "KMS"
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
}

depends_on = [aws_kms_alias.ecr]
Expand Down

0 comments on commit 94726b0

Please sign in to comment.