Skip to content

Instantly share code, notes, and snippets.

@ipmb
Created January 22, 2020 20:13
Show Gist options
  • Save ipmb/d173fb4f78d8e73d9d1294c71f641045 to your computer and use it in GitHub Desktop.
Save ipmb/d173fb4f78d8e73d9d1294c71f641045 to your computer and use it in GitHub Desktop.
module.example_prod.aws_ecs_service.web: Creating...
2020/01/22 20:04:46 [DEBUG] module.example_prod.aws_ecs_service.web: applying the planned Create change
2020/01/22 20:04:46 [TRACE] GRPCProvider: ApplyResourceChange
2020-01-22T20:04:46.360Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] setting computed for "placement_strategy" from ComputedKeys
2020-01-22T20:04:46.360Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] Adding ECS load balancers: [{
2020-01-22T20:04:46.360Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ContainerName: "web",
2020-01-22T20:04:46.360Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ContainerPort: 8000,
2020-01-22T20:04:46.360Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: TargetGroupArn: "arn:aws:elasticloadbalancing:us-east-1:xxx:targetgroup/llprd20200122052638603300000006/a0a2d775807f6620"
2020-01-22T20:04:46.360Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: }]
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] Creating ECS service: {
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: CapacityProviderStrategy: [{
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Base: 0,
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: CapacityProvider: "default-202001220537",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Weight: 100
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: }],
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ClientToken: "terraform-20200122200446360300000001",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Cluster: "arn:aws:ecs:us-east-1:xxx:cluster/default",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: DeploymentConfiguration: {
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: MaximumPercent: 200,
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: MinimumHealthyPercent: 100
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: },
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: DesiredCount: 1,
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: EnableECSManagedTags: true,
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: LoadBalancers: [{
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ContainerName: "web",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ContainerPort: 8000,
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: TargetGroupArn: "arn:aws:elasticloadbalancing:us-east-1:xxx:targetgroup/llprd20200122052638603300000006/a0a2d775807f6620"
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: }],
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: PlacementStrategy: [{
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Field: "memory",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Type: "binpack"
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: }],
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: PropagateTags: "SERVICE",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: SchedulingStrategy: "REPLICA",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ServiceName: "example-prod-web",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Tags: [{
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Key: "Environment",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Value: "prod"
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: },{
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Key: "Application",
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Value: "example"
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: }],
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: TaskDefinition: "arn:aws:ecs:us-east-1:xxx:task-definition/example-prod-placeholder:1"
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: }
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] Waiting for state to become: [success]
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] [aws-sdk-go] DEBUG: Request ecs/CreateService Details:
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: POST / HTTP/1.1
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Host: ecs.us-east-1.amazonaws.com
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: User-Agent: aws-sdk-go/1.28.3 (go1.13.5; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.8 (+https://www.terraform.io)
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Content-Length: 854
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=xxx/20200122/us-east-1/ecs/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=xxx
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Content-Type: application/x-amz-json-1.1
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: X-Amz-Date: 20200122T200446Z
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: X-Amz-Security-Token: xxx
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: X-Amz-Target: AmazonEC2ContainerServiceV20141113.CreateService
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Accept-Encoding: gzip
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4:
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: {"capacityProviderStrategy":[{"base":0,"capacityProvider":"default-202001220537","weight":100}],"clientToken":"terraform-20200122200446360300000001","cluster":"arn:aws:ecs:us-east-1:xxx:cluster/default","deploymentConfiguration":{"maximumPercent":200,"minimumHealthyPercent":100},"desiredCount":1,"enableECSManagedTags":true,"loadBalancers":[{"containerName":"web","containerPort":8000,"targetGroupArn":"arn:aws:elasticloadbalancing:us-east-1:xxx:targetgroup/llprd20200122052638603300000006/a0a2d775807f6620"}],"placementStrategy":[{"field":"memory","type":"binpack"}],"propagateTags":"SERVICE","schedulingStrategy":"REPLICA","serviceName":"example-prod-web","tags":[{"key":"Environment","value":"prod"},{"key":"Application","value":"example"}],"taskDefinition":"arn:aws:ecs:us-east-1:xxx:task-definition/example-prod-placeholder:1"}
2020-01-22T20:04:46.361Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: -----------------------------------------------------
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] [aws-sdk-go] DEBUG: Response ecs/CreateService Details:
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: ---[ RESPONSE ]--------------------------------------
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: HTTP/1.1 400 Bad Request
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Connection: close
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Content-Length: 294
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Content-Type: application/x-amz-json-1.1
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: Date: Wed, 22 Jan 2020 20:04:46 GMT
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: X-Amzn-Requestid: 99672fc1-55b3-4449-aeef-a351278f0f9d
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4:
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4:
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: -----------------------------------------------------
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] [aws-sdk-go] {"__type":"InvalidParameterException","message":"The provided target group arn:aws:elasticloadbalancing:us-east-1:xxx:targetgroup/llprd20200122052638603300000006/a0a2d775807f6620 has target type ip, which is incompatible with the bridge network mode specified in the task definition."}
2020-01-22T20:04:46.819Z [DEBUG] plugin.terraform-provider-aws_v2.45.0_x4: 2020/01/22 20:04:46 [DEBUG] [aws-sdk-go] DEBUG: Validate Response ecs/CreateService failed, attempt 0/25, error InvalidParameterException:
2020/01/22 20:04:46 [DEBUG] module.example_prod.aws_ecs_service.web: apply errored, but we're indicating that via the Error pointer rather than returning it: InvalidParameterException: "example-prod-web"
2020/01/22 20:04:46 [TRACE] module.example_prod: eval: *terraform.EvalMaybeTainted
2020/01/22 20:04:46 [TRACE] EvalMaybeTainted: module.example_prod.aws_ecs_service.web encountered an error during creation, so it is now marked as tainted
2020/01/22 20:04:46 [TRACE] module.example_prod: eval: *terraform.EvalWriteState
2020/01/22 20:04:46 [ERROR] module.example_prod: eval: *terraform.EvalApplyPost, err: InvalidParameterException: "example-prod-web"
2020/01/22 20:04:46 [ERROR] module.example_prod: eval: *terraform.EvalSequence, err: InvalidParameterException: "example-prod-web"
2020/01/22 20:04:46 [TRACE] [walkApply] Exiting eval tree: module.example_prod.aws_ecs_service.web
Error: InvalidParameterException: "example-prod-web"
on apps/example/main.tf line 216, in resource "aws_ecs_service" "web":
216: resource "aws_ecs_service" "web" {
2020-01-22T20:04:46.871Z [DEBUG] plugin: plugin process exited: path=/bin/terraform pid=499
2020-01-22T20:04:46.871Z [DEBUG] plugin: plugin exited
2020-01-22T20:04:46.871Z [DEBUG] plugin: plugin process exited: path=/bin/terraform pid=416
2020-01-22T20:04:46.871Z [DEBUG] plugin: plugin exited
2020-01-22T20:04:46.871Z [DEBUG] plugin: plugin process exited: path=/bin/terraform pid=543
2020-01-22T20:04:46.871Z [DEBUG] plugin: plugin exited
2020-01-22T20:04:46.872Z [DEBUG] plugin: plugin process exited: path=/app/terraform/.terraform/plugins/linux_amd64/terraform-provider-aws_v2.45.0_x4 pid=554
2020-01-22T20:04:46.872Z [DEBUG] plugin: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment