Skip to content

Commit 08dab69

Browse files
image-copy-ecr: Delete non-empty sub-repo (#236)
This commit forces the non-empty sub-repo to be deleted. The ko provider does not support deleting images from a repository at this time. This sub-repo was created by the example and only contain the image that the example pushes to it.
1 parent a53bbd7 commit 08dab69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

image-copy-ecr/iac/lambda.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ resource "aws_ecr_repository" "repo" {
7676
resource "aws_ecr_repository" "copier-repo" {
7777
name = "${var.dst_repo}/image-copy"
7878
image_tag_mutability = "MUTABLE"
79+
force_delete = true
7980

8081
image_scanning_configuration {
8182
scan_on_push = false

0 commit comments

Comments
 (0)