sparse-intern-71089
07/19/2022, 11:06 AMagreeable-window-77899
07/19/2022, 11:07 AM"@pulumi/aws": "^5.0.0",
"@pulumi/awsx": "^0.40.0",
"@pulumi/pulumi": "^3.0.0"billowy-army-68599
agreeable-window-77899
07/19/2022, 3:06 PMawx.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:
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 },
}
);