我正在尝试运行我使用AWS ECS创建的服务的容器。但是EC2实例上的ecs agent无法从AWS管理的s3存储桶中检索到一些配置:
Failed to pull image ...........dkr.ecr.eu-west-1.amazonaws.com/........:latest: error pulling image configuration: Get https://prod-eu-west-1-starport-layer-bucket.s3-eu-west-1.amazonaws.com/.......: dial tcp 54.231.141.131:443: i/o timeout该实例在我使用this tutorial配置的私有子网中运行。
我可以从实例上卷曲www.google.co.uk,但不能从我的计算机和同一个私有网络关联的公网子网上的堡垒上ping/卷曲s3-eu-west-1.amazonaws.com。
这个问题看起来类似于未解决的问题ECS agent can not successfully pull image from ECR,但我的问题只是关于从s3存储桶中检索该配置。
发布于 2019-08-14 15:36:00
您需要将https://prod-eu-west-1-starport-layer-bucket.s3-eu-west-1.amazonaws.com列入白名单/允许从您的ecs实例出站访问,因为AWS在内部使用它来管理ECR图像层。
有关更多详细信息,请查看以下参考:https://docs.aws.amazon.com/AmazonECR/latest/userguide/ecr-minimum-s3-perms.html https://github.com/awsdocs/amazon-ecr-user-guide/issues/8#start-of-content
https://stackoverflow.com/questions/48480303
复制相似问题