aws-samples / automated-language-analysis

This repository contains a CDK project that deploys a fully automated language analysis pipeline.
Apache License 2.0
6 stars 5 forks source link

Ability to delete ECR repositories from DataSourceAnalysisNestedStack #1

Closed luisgrac closed 2 years ago

luisgrac commented 2 years ago

Upon $ cdk destroy, LanguageAnalysis-DataSourceAnalysisNestedStack results in DELETE_FAILED due to event:

The following resource(s) failed to delete: [ErrorsPipelineECRRepositoryXXXXXXXX, MetricsPipelineECRRepositoryYYYYYYYY].

Because they're resources created outside of CDK and therefore CDK does not have permission or capabilities to delete those.

Please consider using a AWS Lambda-backed custom resource to delete all un-deleted resources from main Stack, as a hotfix.

bpguasch commented 2 years ago

Thank you,

This is an interesting feature. Will work on it.

bpguasch commented 2 years ago

Feature implemented.