简体   繁体   English

如何自动将代码部署到 AWS 管道中的 ecs

[英]how to automatically deploy a code to ecs in AWS pipeline

how to automatically deploy a new code to ECS in AWS pipeline?如何在 AWS 管道中自动将新代码部署到 ECS? Source & Build stages in pipeline work well, but Deploy stage cant be executed, it runs for an hour, then finishes with error (timeout).管道中的 Source & Build 阶段运行良好,但 Deploy 阶段无法执行,它运行了一个小时,然后以错误(超时)结束。 I need to manually stop docker container on EC2 (ECS), after that Deploy stage will work.我需要手动停止 EC2(ECS)上的 docker 容器,之后部署阶段才能工作。 I m using Free tier, is there any limitation for codepipeline and ecs?我使用的是免费套餐,codepipeline 和 ecs 有什么限制吗?

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.如果不是,则可能是您的 ECS 任务正在尝试使用与当前停用的端口相同的端口。

Is the IAM Role used by CodePipeline able to do stuff on your ECS cluster? CodePipeline 使用的 IAM 角色是否能够在您的 ECS 集群上执行操作?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM