我正在迁移我工作的公司的基础设施的一部分到亚马逊ECS,我被困在试图使我的服务器容器连接到数据库容器。 下面是我如何设置我的任务: { "requiresAttributes": [ { "value": null, "name": "com.amazonaws.ecs.capability.docker-remote-api.1.17", "targetId": null, "targetType": null }, { "value": null, "name": "com.amazonaws.ecs.capability.logging-driver.syslog", "targetId": null, "targetType": null }, { "value": null, "name": "com.amazonaws.ecs.capability.docker-remote-api.1.18", "targetId": null, "targetType": null }, { "value": null, "name": "com.amazonaws.ecs.capability.ecr-auth", "targetId": null, "targetType": null } ], "taskDefinitionArn": "arn:aws:ecs:us-east-1:9621234232917455:task-definition/ecv-server:12", "networkMode": "bridge", "status": "ACTIVE", "revision": 12, "taskRoleArn": […]