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,510 points
1,142 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
• 58,020 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,670 points
1,879 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,280 points
1,299 views
+2 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
• 58,020 points
2,706 views
+2 votes
1 answer
+1 vote
4 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
• 58,020 points
43,547 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
• 58,020 points
1,874 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP