Skip to content

Instantly share code, notes, and snippets.

@lbordowitz
Created August 22, 2022 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbordowitz/2fe0b00bc10c522b34c74d490f67ec8d to your computer and use it in GitHub Desktop.
Save lbordowitz/2fe0b00bc10c522b34c74d490f67ec8d to your computer and use it in GitHub Desktop.
500 server exception attempting to create an ECS instance
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: ecs.us-east-1.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.1.9 (+https://www.terraform.io) terraform-provider-aws/dev (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.43.40 (go1.17.6; linux; amd64)
Content-Length: 616
Authorization: AWS4-HMAC-SHA256 Credential=<CENSORED>, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-target, Signature=<CENSORED>
Content-Type: application/x-amz-json-1.1
X-Amz-Date: 20220822T030014Z
X-Amz-Target: AmazonEC2ContainerServiceV20141113.CreateService
Accept-Encoding: gzip
{"capacityProviderStrategy":[],"clientToken":"terraform-20220822030004639800000001","cluster":"arn:aws:ecs:us-east-1:315481600233:cluster/example-cluster","deploymentConfiguration":{"maximumPercent":200,"minimumHealthyPercent":100},"desiredCount":0,"enableECSManagedTags":false,"enableExecuteCommand":false,"launchType":"FARGATE","networkConfiguration":{"awsvpcConfiguration":{"assignPublicIp":"DISABLED","securityGroups":[],"subnets":["subnet-07d4ad5d801d09efe"]}},"schedulingStrategy":"REPLICA","serviceName":"example","taskDefinition":"arn:aws:ecs:us-east-1:315481600233:task-definition/example-task-definition:1"}
-----------------------------------------------------: timestamp=2022-08-21T22:00:14.680-0500
2022-08-21T22:00:16.025-0500 [DEBUG] provider.terraform-provider-aws_v4.11.0_x5: [aws-sdk-go] DEBUG: Response ecs/CreateService Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 500 Internal Server Error
Connection: close
Content-Length: 85
Content-Type: application/x-amz-json-1.1
Date: Mon, 22 Aug 2022 03:00:15 GMT
X-Amzn-Requestid: 565a8800-5436-4cf9-b68a-206d0d18ed85
-----------------------------------------------------: timestamp=2022-08-21T22:00:16.024-0500
2022-08-21T22:00:16.025-0500 [DEBUG] provider.terraform-provider-aws_v4.11.0_x5: [aws-sdk-go] {"__type":"ServerException","message":"Service Unavailable. Please try again later."}: timestamp=2022-08-21T22:00:16.024-0500
2022-08-21T22:00:16.025-0500 [DEBUG] provider.terraform-provider-aws_v4.11.0_x5: [aws-sdk-go] DEBUG: Validate Response ecs/CreateService failed, attempt 6/25, error ServerException: Service Unavailable. Please try again later.: timestamp=2022-08-21T22:00:16.024-0500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment