netbears/traefik-cluster-ecs

Error in service template

CelestialGuru opened this issue · 0 comments

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.