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
• 14,970 points
93 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,120 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,240 points
55 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,130 points
91 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,120 points
57 views
0 votes
1 answer
0 votes
1 answer

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,120 points
952 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,120 points
114 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.