我有一个通过ecs-cli compose service up部署在ECS上的服务
ECS/EFS文档说,要像这样配置任务定义,在ecs容器中挂载efs卷:
{
"containerDefinitions": [
{
"memory": 128,
"portMappings": [
{
"hostPort": 80,
"containerPort": 80,
"protocol": "tcp"
}
],
"essential": true,
"mountPoints": [
{
"containerPath": "/usr/share/nginx/html",
"sourceVolume": "efs-html"
}
],
"name": "nginx",
"image": "nginx"
}
],
"volumes": [
{
"name": "efs-html",
"efsVolumeConfiguration": {
"fileSystemId": "fs-1234",
"rootDirectory": "/path/to/my/data"
}
}
],
"family": "nginx-efs"
}如何将其转换为docker/ecs-pars.yml语法?
发布于 2020-04-15 18:32:31
它似乎还没有得到支持。请参阅https://github.com/aws/amazon-ecs-cli/issues/1009
https://stackoverflow.com/questions/60819635
复制相似问题