Search code examples
amazon-web-servicesamazon-ecs

Does Amazon AWS EC2 Container Service support volumes?


The documentation suggests not. There is more information on their task definition page, including a mysql example, where a data volume is usually a reasonably good idea i.e.:

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

Solution

  • Yes, see the docs. They are configured as a part of an ECS Task Definition. Here is an article describing how to use them.