netbears / traefik-cluster-ecs

This is a tutorial on how to deploy a Traefik Load Balancer in AWS using CloudFormation to load balancer development ECS tasks using hosts (FQDN).
https://netbears.com/blog/traefik-cluster-ecs/
Apache License 2.0
63 stars 24 forks source link

Error in service template #3

Open CelestialGuru opened 3 years ago

CelestialGuru commented 3 years ago

Trying to upload cloudformation-template-service.yaml in AWS CloudFormation I get the following exception:

 Cannot render the template because of an error.: YAMLException: duplicated mapping key at line 71, column 71: ... er.stickiness.cookieName: "true" ^

The following is a snippet from cloudformation-template-service.yaml lines 65 - 71:

            traefik.backend.loadbalancer.stickiness.cookieName: !Join
              - .
              - - cookie
                - !Join [ "-", [ !Sub "${ApplicationName}", !Select ["1", !Split [":", !Ref ServiceImage]] ] ]
                - !Ref Environment
                - !Ref Domain
            traefik.backend.loadbalancer.stickiness.cookieName: "true"

It is clear that the key value traefik.backend.loadbalancer.stickiness.cookieName is in there twice.