首页 > 解决方案 > 如何在不更改公共 DNS 地址的情况下使用 ECR 中的最新 docker 映像更新 ECS 服务?

问题描述

我必须使用部署在 ECR 上的最新 docker 映像更新我的 ECS 服务,并且不更改公共地址。我尝试通过选择强制新部署来通过用户界面修改服务选项来通过用户界面修改服务,该选项会生成一个具有新 IP 公共地址的新任务,但这不是很实用。还有其他方法或解决方案吗?

谢谢

标签: dockerdevopsamazon-ecsamazon-ecr

解决方案


ECS- Updating the service will change the IP address (right now this cannot be handled). what you can do is - place an application load balancer and have path based routing ( basically you can set the target groups).

So now once you have the target group configured you can directly access the service via load balancer DNS name else updating the service will change the IP address and every time you have to check the IP.


推荐阅读