I have the following setting (I deleted the non-important fields):
{
"ECSTask": {
"Type": "AWS::ECS::TaskDefinition",
"Properties": {
"ContainerDefinitions": [
{
"Name": "mysql",
"Image": "mysql",
"MountPoints": [{"SourceVolume": "mysql", "ContainerPath": "/var/lib/mysql"}]
}
],
"RequiresCompatibilities": ["FARGATE"],
"Volumes": [{"Name": "mysql"}]
}
}
}
It seems to work (the container starts up correctly), but I'm not quite sure where exactly this volume is stored. I assumed that this would be the volume of EBS, but I do not see it there. I suppose this is internal to my task, but in this case - how do I access it? How can I control its limits (minimum / maximum size, etc.)? How to back up for this volume?
Thank.
source
share