docker - 如何在不更改公共 DNS 地址的情况下使用 ECR 中的最新 docker 映像更新 ECS 服务?
问题描述
我必须使用部署在 ECR 上的最新 docker 映像更新我的 ECS 服务,并且不更改公共地址。我尝试通过选择强制新部署来通过用户界面修改服务选项来通过用户界面修改服务,该选项会生成一个具有新 IP 公共地址的新任务,但这不是很实用。还有其他方法或解决方案吗?
谢谢
解决方案
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.
推荐阅读
- angular - 登录后返回url
- python-3.x - PDFInfoNotInstalledError AWS Lambda 找不到带有 pdf2image 的 Poppler 路径
- python - 记录数据树莓派猫喂食器,我似乎无法让它工作!Python
- c - 在两个线程之间同步 Printf
- css - 包含在弹性框中时滚动
- flutter - Flutter - 多次调用 didChangeAppLifecycleState 的问题
- docker - docker镜像问题
- android - 如何在没有 VPN 的情况下加载在我国被阻止的 URL?
- r - 下载最终数据表并在 shinydashboard 中绘图
- firebase - 通过 Cloud Functions 对用户进行身份验证