Skip to content

Instantly share code, notes, and snippets.

@yusinto
Created August 26, 2016 04:30
Show Gist options
  • Save yusinto/c9dad1c91098bd030b011f103357d8e4 to your computer and use it in GitHub Desktop.
Save yusinto/c9dad1c91098bd030b011f103357d8e4 to your computer and use it in GitHub Desktop.
ecs/CreateService InvalidParameterException: A host port mapping for the container port 80 is required
DEBUG aws-sdk-go DEBUG: Request ecs/CreateService Details:
DEBUG --- REQUEST POST-SIGN -----------------------------
DEBUG POST / HTTP/1.1
DEBUG Host: ecs.ap-southeast-2.amazonaws.com
DEBUG User-Agent: terraform/0.7.1 aws-sdk-go/1.4.1 (go1.7; darwin; amd64)
DEBUG Content-Length: 528
DEBUG Authorization: xxx
DEBUG Content-Type: application/x-amz-json-1.1
DEBUG X-Amz-Date: 20160825T130303Z
DEBUG X-Amz-Target: AmazonEC2ContainerServiceV20141113.CreateService
DEBUG Accept-Encoding: gzip
DEBUG
DEBUG {"clientToken":"terraform-xxx","cluster":"arn:aws:ecs:ap-southeast-2:xxx:cluster/WebsiteFeature1026","deploymentConfiguration":{"maximumPercent":200,"minimumHealthyPercent":100},"desiredCount":2,"loadBalancers":,"role":"ecsServiceRole","serviceName":"WebsiteFeature1026","taskDefinition":"arn:aws:ecs:ap-southeast-2:xxx:task-definition/WebsiteFeature1026:2"}
DEBUG aws-sdk-go DEBUG: Response ecs/CreateService Details:
DEBUG --- RESPONSE --------------------------------------
DEBUG HTTP/1.1 400 Bad Request
DEBUG Connection: close
DEBUG Content-Length: 109
DEBUG Content-Type: application/x-amz-json-1.1
DEBUG Date: Thu, 25 Aug 2016 13:03:03 GMT
DEBUG Server: Server
DEBUG X-Amzn-Requestid: 422230e7-6ac4-11e6-b59f-cb732b346942
DEBUG
DEBUG {"__type":"InvalidParameterException","message":"A host port mapping for the container port 80 is required."}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment