4

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": []
}

2 Answers 2

11

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

0

Volumes are not supported at the moment. But AWS seems to be working on this feature.

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

1
  • 1
    This answer was right at that moment but is obsolete now. Jul 16, 2017 at 18:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.