Add fix for destroying loadtesting ECR (#9154)

This commit is contained in:
Zachary Winnerman 2023-01-02 16:07:37 -05:00 committed by GitHub
parent b19233e21d
commit da7329cbcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
locals {
loadtest_tag = "${var.git_branch != null ? var.git_branch : var.tag}"
loadtest_tag = var.git_branch != null ? var.git_branch : var.tag
}
resource "aws_kms_key" "main" {
@ -20,6 +20,8 @@ resource "aws_ecr_repository" "fleet" {
encryption_type = "KMS"
kms_key = aws_kms_key.main.arn
}
force_delete = true
}
data "aws_ecr_authorization_token" "token" {}