Does Amazon AWS EC2 Container Support Volume Support?

the documentation assumes no. See the task definition page for more details , including the mysql example, where data volume is usually a good idea. Ie:

{
  "image": "mysql",
  "name": "db",
  "cpu": 10,
  "memory": 500,
  "essential": true,
  "entryPoint": [
    "/entrypoint.sh"
  ],
  "environment": [
    {
      "name": "MYSQL_ROOT_PASSWORD",
      "value": "pass"
    }
  ],
  "portMappings": []
}
+4
source share
2 answers

Yes, see the docs . They are configured as part of the ECS task definition. Here is an article describing how to use them.

+11
source

Volumes are not currently supported. But AWS seems to be working on this feature.

https://twitter.com/mndoci/status/549647072358440964

0

Source: https://habr.com/ru/post/1568234/


All Articles