Using the aws-ecs-deploy-1.6.2, I keep getting an error stating:
✖ Failed to update the stack.
An error occurred (InvalidParameterException) when calling the UpdateService operation: portName(whatsours-stripe-service-8095-tcp) does not refer to any named PortMapping in the container definitions.
This is due to the fact that we had to add PortMapping name to our task definitions in AWS ECS because we want to enable client/server Service Discovery; however, our task-definition-development.json file doesn't allow us to add name in the portMappings. If we add it, then we receive the following error:
✖ ECS task definition parameter validation error:
Parameter validation failed:
Unknown parameter in containerDefinitions[0].portMappings[0]: "name", must be one of: containerPort, hostPort, protocol
@Brandon Robinson hi. Thanks for your question.
Looks like boto3 library should be updated in this pipe to fix this error (add support for it):
✖ ECS task definition parameter validation error:
Parameter validation failed:
Unknown parameter in containerDefinitions[0].portMappings[0]: "name", must be one of: containerPort, hostPort, protocol
Hell Igor,
Thank you for your response. Looking forward to the new release given the circumstances.
Thanks again,
Brandon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The new version of the aws-ecs-deploy pipe is released:
atlassian/aws-ecs-deploy:1.7.0
The boto3 dependency is updated to the latest version (1.26).
Best regards,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.