Skip to content

Commit

Permalink
Fix kms key condition when using default key (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
lzrocha authored Mar 4, 2022
1 parent db30da7 commit d110c89
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,6 +7,6 @@ resource "aws_ecr_repository" "default" {

encryption_configuration {
encryption_type = "KMS"
kms_key = length(var.kms_key_arn) > 0 ? var.kms_key_arn : null
kms_key = length(var.kms_key_arn) > 0 ? var.kms_key_arn : ""
}
}

0 comments on commit d110c89

Please sign in to comment.