When CodePipeline creates a new ECS task definition revision, the container portMapping name is removed preventing Service Discovery from working.

0

This smells like a bug. If I revert to the previous task definition and manually deploy the new container, it works. This is a fargate container.

Initial State after the Cloudformation Deployment runs and the task definition is created Enter image description here

After pushing a change to run the pipeline, the deployment step fails because portName doesn't match in the newly created revision: Enter image description here

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions