我正在尝试创建一个在同一网络中运行 2 个容器的 ECS 任务。我尝试将我的 cft 更新为以下内容:
"EcsTask": {
"Type": "AWS::ECS::TaskDefinition",
"Properties": {
"Family": "...",
"NetworkMode": "bridge",
"ContainerDefinitions": [
{
"Name": "exampleA",
"Essential": "true",
"Image": "...",
"PortMappings": [
{
"HostPort": 8000,
"ContainerPort": 8000,
"Protocol": "tcp"
}
],
"links": ["exampleB"],
"MemoryReservation": 256
},
{
"Name": "exampleB",
"Essential": "true",
"Image": "...",
"MemoryReservation": 256
}
],
"TaskRoleArn": "..."
}
}
但我遇到了错误UPDATE_FAILED Encountered unsupported property links。这是在 ECS 上的同一网络中创建两个容器的正确方法吗?
最佳答案
关于amazon-web-services - ECS CFT错误: Encountered unsupported property links,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49520544/