Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix breaking change in imageUri output of ecr.Image #1467

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

flostadler
Copy link
Contributor

@flostadler flostadler commented Jan 8, 2025

I noticed that #1278 introduced an (unreleased) breaking change in the imageUri output of ecr.Image.

Before upgrading to docker-build, the component returned URIs in the form of ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/REPOSITORY_NAME@sha256:1234567890123456789012345678901234567890123456789012345678901234.

After the update it returns them in the following form ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com/REPOSITORY_NAME:TAG_NAME@sha256:1234567890123456789012345678901234567890123456789012345678901234. (NOTE: they include the tag name now)

While it seems like an innocent change, it breaks the integration with lambda functions. AWS Lambda expects an image URI without the TAG.

The change proposed in this PR adds post processing for the image ref in order to strip the tag from the URI. Additionally it extends the upgrade test to assert on this behavior.

Relates to #1349

@flostadler flostadler requested review from t0yv0, corymhall and a team January 8, 2025 11:57
@flostadler flostadler self-assigned this Jan 8, 2025
@flostadler flostadler merged commit d20e16a into master Jan 8, 2025
11 checks passed
@flostadler flostadler deleted the flostadler/docker-build-image-uri branch January 8, 2025 21:06
@pulumi-bot
Copy link
Contributor

This PR has been shipped in release v2.20.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants