This message was deleted.
# general
s
This message was deleted.
a
These are the package versions that i am using
Copy code
"@pulumi/aws": "^5.0.0",
"@pulumi/awsx": "^0.40.0",
"@pulumi/pulumi": "^3.0.0"
b
@agreeable-window-77899 no, this is an AWS limitation. You’ll need to clear the images out first
a
thanks for your response @billowy-army-68599 What I ended up doing is to NOT let
awx.ecs.FargateService
create the
ecr
repository. Instead I created the instance explicitly with the
forceDelete: true,
flag and that seems to do the trick. Now it is deleting the
ecr
repo when I do
pulumi destroy
. Here is the code that worked:
Copy code
const toolingApiServerEcrRepo = new aws.ecr.Repository(
  `tooling-app-api-server-${stackName}`,
  {
    name: `tooling-app-api-server-${stackName}`,
    forceDelete: true,
    tags: { app: "tooling-app", stack: stackName },
  }
);
274 Views