little-soccer-5693
09/01/2022, 10:16 PMDiagnostics:
aws:ecr:Repository (<reponame>):
error: deleting urn:pulumi:dev::<reponame>::aws:ecr/repository:Repository::<reponame>: 1 error occurred:
* ECR Repository (<reponame>-b14d0f6) not empty, consider using force_delete: RepositoryNotEmptyException: The repository with name '<reponame>-b14d0f6' in registry with id '<accountId>' cannot be deleted because it still contains images
however, I am setting the force delete flag:
repoArgs := &ecr.RepositoryArgs{
ForceDelete: pulumi.Bool(true),
}
repo, err := ecr.NewRepository(ctx, repoName, repoArgs)
if err != nil {
return err
}
is this a bug or am I setting the wrong attribute?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by