ECS CFT error: Encountered unsupported property links ​

0 votes

I'm trying to create an ECS task that runs 2 containers in the same network. I tried to update my cft to the following:

"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": "..."
        }
    }

But I run into the error UPDATE_FAILED Encountered unsupported property links. Is this the right way to go about creating two containers in the same network on ECS?

Sep 10, 2018 in AWS by bug_seeker
• 15,350 points
153 views

1 answer to this question.

0 votes

You have only a small typo within your teamplate. The property needs to be called Links and not links :-)

Check the documentation for more details

(If you read the error message carefully you would have tackled this issue by your own)

answered Sep 10, 2018 by Priyaj
• 56,920 points

Related Questions In AWS

0 votes
1 answer

Getting Error 503 when I using my site via DNS

add the server_name directive to your Nginx ...READ MORE

answered Apr 25, 2018 in AWS by Cloud gunner
• 4,280 points
140 views
0 votes
1 answer
0 votes
1 answer

AWS Cloudtrail API for Go SDK showing an error mesage.

You  must add S3 Policy in your ...READ MORE

answered Jun 27, 2018 in AWS by Flying geek
• 3,160 points
171 views
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,920 points
224 views
0 votes
1 answer
0 votes
2 answers

What is the difference between Amazon ECS and Amazon EC2?

EC2 allows you to launch individual instances ...READ MORE

answered Jul 11, 2018 in AWS by Priyaj
• 56,920 points
2,304 views
0 votes
1 answer

AWS EMR script-runner access error

It turns out that a bootstrap action ...READ MORE

answered Aug 6, 2018 in AWS by Priyaj
• 56,920 points
207 views