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: Update LATEST_VERSION_ID env variable in Buildspec and Image tag in ECS Task definition #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ammysore17
Copy link

When the app assets are uploaded as a ZIP file to the S3 bucket, there is an edge case where the S3 object version ID potentially starts with a period ("."). If an attempt is made to use the same version ID as an image tag during Docker Image build, the Build fails. This fix prepends the S3 object version ID with a character "v" as the Image tag in the Codebuild Buildspec configuration and the ECS Task definition.

Attached files demonstrate the issue:

S3 Object Version ID Build Logs

…ect and image tag (if user does not provide a desired image tag) in the ECS Task definition to fix issue with S3 object version IDs that can start with a "." which is not a valid docker image tag.
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.

1 participant