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 PMlittle-cartoon-10569
09/19/2022, 10:43 PMpulumi destroy
knows to delete them), or else you need remove them from the repo before running pulumi destroy
.little-cartoon-10569
09/19/2022, 10:49 PMpulumi.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.wide-wire-45375
09/19/2022, 11:13 PMpulumi destroy
command.wide-wire-45375
09/19/2022, 11:16 PMpulumi 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