Assuming ownership of previously orphaned ECR repositories #26286
-
I have an ECR repository with an explicit name and and a There's an issue, though. When I re-run Could the contributors here recommend an approach that allows the CDK to maintain ownership and management of these ECR repositories while at the same time retain images in the ECR repositories themselves? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
thanks you for sharing, very interesting |
Beta Was this translation helpful? Give feedback.
-
@github-actions proposed-answer You can use |
Beta Was this translation helpful? Give feedback.
-
Good work) |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@github-actions proposed-answer You can use
cdk import
, which makes use of the CloudFormation import feature. ECR::Repository is a supported resource for importing, so this should work. Be sure to follow the instructions in thecdk import
documentation, and please open up an issue if you encounter any bugs