简体   繁体   English

如何将 EBS 连接到 ECS Fargate?

[英]How do I connect EBS to ECS Fargate?

I am trying to connect the same EBS to multiple ECS instances running on Fargate.我正在尝试将同一个 EBS 连接到在 Fargate 上运行的多个 ECS 实例。 I have a Docker container of my app, the ECS Task and ECS Service are working as expected, but I can't find any way to connect EBS to the ECS Task.我的应用程序有一个 Docker 容器,ECS 任务和 ECS 服务按预期工作,但我找不到任何方法将 EBS 连接到 ECS 任务。

Note: The app instances synchronize writes through a common agent so there won't be a problem with regards to concurrency.注意:应用程序实例通过通用代理同步写入,因此不会出现并发问题。

You can't do that.你不能那样做。 It is not possible.这不可能。 EBS only works with EC2 instances. EBS 仅适用于 EC2 实例。 EBS is not supported by Fargate (at this time). Fargate(目前)不支持 EBS。 You would need to use EFS with Fargate.您需要将EFS与 Fargate 结合使用。

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

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