aws-s3-deployments, but for ECR: copy asset Docker image to well-defined repository
- Dominant language
- TypeScript
- Stars
- 12.9k
- Forks
- 4.6k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 83
Description
We are using DockerImageAsset to push a dummy image to the ECR and to use it to create an ECS service. To do that, we use repositoryName to address the target repo. It seems that there's a hint in
https://github.com/aws/aws-cdk/blob/4baf26e82503ec256d2ac792f87c4a1975375104/packages/%40aws-cdk/core/lib/assets.ts#L155
indicating that the use of repositoryName is deprecated. My question is what is the safe alternative way to push an image to an ECR repository?
Contributor guide
Research direction
Start with packages/@aws-cdk/core/lib/assets.ts around line 155 and trace DockerImageAsset's repositoryName handling. Compare the requested ECR workflow with the existing aws-s3-deployments behavior and identify the supported API path. Done means the safe alternative is implemented or documented and the relevant asset behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker, typescript
- Domain
- cloud, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100