Epic555
Epic555

Reputation: 433

how to automatically deploy a code to ecs in AWS pipeline

how to automatically deploy a new code to ECS in AWS pipeline? Source & Build stages in pipeline work well, but Deploy stage cant be executed, it runs for an hour, then finishes with error (timeout). I need to manually stop docker container on EC2 (ECS), after that Deploy stage will work. I m using Free tier, is there any limitation for codepipeline and ecs?

Upvotes: 0

Views: 239

Answers (1)

Mornor
Mornor

Reputation: 3783

Difficult to answer with so little details.

Do you use dynamic port mapping? If not, it could be that your ECS task is trying to use the same port as the one which is currently retiring.

Is the IAM Role used by CodePipeline able to do stuff on your ECS cluster?

Upvotes: 1

Related Questions