wide-wire-45375
09/19/2022, 10:15 PMpulumi destroy
fails to remove ecr repo?
It gives an error indicating the repo is not empty.
I am trying to delete the repo as well as the images with pulumi destroy
command.
This code that creates the ecr image:
const imageUrl = pulumi.output(
awsx.ecr.buildAndPushImage('my-image', {
context: './',
dockerfile: './Dockerfile.track',
}).imageValue
) as pulumi.Output<string>
little-cartoon-10569
09/19/2022, 10:42 PMpulumi destroy
knows to delete them), or else you need remove them from the repo before running pulumi destroy
.pulumi.output()
there. All that does is wrap the imageName (which is an Output<string>) in another Output<string>.wide-wire-45375
09/19/2022, 11:08 PMpulumi destroy
works perfectly. But, in some cases it doesn't work.pulumi destroy
command.pulumi destroy
removes the repo with the images with out any issue.little-cartoon-10569
09/19/2022, 11:48 PMdocker push
?wide-wire-45375
09/20/2022, 5:09 AM