Skip to content

Instantly share code, notes, and snippets.

@finnigja
Last active July 21, 2021 19:31
Show Gist options
  • Save finnigja/be3753bed43ecd96ff8d188c5fb6d6cc to your computer and use it in GitHub Desktop.
Save finnigja/be3753bed43ecd96ff8d188c5fb6d6cc to your computer and use it in GitHub Desktop.
Debug log extract for aws_cloudformation_stack failure to update to parameters
2021-07-21T11:56:00.135-0700 [INFO] Starting apply for aws_cloudformation_stack.test-stack
2021-07-21T11:56:00.135-0700 [DEBUG] aws_cloudformation_stack.test-stack: applying the planned Update change
2021-07-21T11:56:00.136-0700 [INFO] provider.terraform-provider-aws_v3.50.0_x5: 2021/07/21 11:56:00 [DEBUG] Updating CloudFormation stack: {
Capabilities: ["CAPABILITY_IAM"],
ClientRequestToken: "terraform-20210721185600136300000001",
Parameters: [{
ParameterKey: "TestParameter",
ParameterValue: "new parameter value"
}],
StackName: "arn:aws:cloudformation:us-west-2:586122851592:stack/test-stack/9b81b940-ea52-11eb-835a-0a92558e38af",
Tags: [{
Key: "Environment",
Value: "testing"
}],
TemplateBody: "{\"Parameters\":{\"TestParameter\":{\"Default\":\"\",\"Type\":\"String\"}},\"Resources\":{\"NullResource\":{\"Type\":\"AWS::CloudFormation::WaitConditionHandle\"}}}"
}: timestamp=2021-07-21T11:56:00.136-0700
2021-07-21T11:56:00.136-0700 [INFO] provider.terraform-provider-aws_v3.50.0_x5: 2021/07/21 11:56:00 [DEBUG] [aws-sdk-go] DEBUG: Request cloudformation/UpdateStack Details:
---[ REQUEST POST-SIGN ]-----------------------------
POST / HTTP/1.1
Host: cloudformation.us-west-2.amazonaws.com
User-Agent: APN/1.0 HashiCorp/1.0 Terraform/1.0.2 (+https://www.terraform.io) terraform-provider-aws/3.50.0 (+https://registry.terraform.io/providers/hashicorp/aws) aws-sdk-go/1.39.5 (go1.16; darwin; amd64)
Content-Length: 658
Authorization: AWS4-HMAC-SHA256 Credential=ASIAYQ55E6U[SNIP]
Content-Type: application/x-www-form-urlencoded; charset=utf-8
X-Amz-Date: 20210721T185600Z
X-Amz-Security-Token: IQoJb3JpZ2l[SNIP]qyCLfg=
Accept-Encoding: gzip
Action=UpdateStack&Capabilities.member.1=CAPABILITY_IAM&ClientRequestToken=terraform-20210721185600136300000001&Parameters.member.1.ParameterKey=TestParameter&Parameters.member.1.ParameterValue=new+parameter+value&StackName=arn%3Aaws%3Acloudformation%3Aus-west-2%3A586122851592%3Astack%2Ftest-stack%2F9b81b940-ea52-11eb-835a-0a92558e38af&Tags.member.1.Key=Environment&Tags.member.1.Value=testing&TemplateBody=%7B%22Parameters%22%3A%7B%22TestParameter%22%3A%7B%22Default%22%3A%22%22%2C%22Type%22%3A%22String%22%7D%7D%2C%22Resources%22%3A%7B%22NullResource%22%3A%7B%22Type%22%3A%22AWS%3A%3ACloudFormation%3A%3AWaitConditionHandle%22%7D%7D%7D&Version=2010-05-15
-----------------------------------------------------: timestamp=2021-07-21T11:56:00.136-0700
2021-07-21T11:56:00.439-0700 [INFO] provider.terraform-provider-aws_v3.50.0_x5: 2021/07/21 11:56:00 [DEBUG] [aws-sdk-go] DEBUG: Response cloudformation/UpdateStack Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 400 Bad Request
Connection: close
Content-Length: 288
Content-Type: text/xml
Date: Wed, 21 Jul 2021 18:55:59 GMT
X-Amzn-Requestid: 8068ce62-0ac2-46e3-babf-08d0a07b323c
-----------------------------------------------------: timestamp=2021-07-21T11:56:00.439-0700
2021-07-21T11:56:00.439-0700 [INFO] provider.terraform-provider-aws_v3.50.0_x5: 2021/07/21 11:56:00 [DEBUG] [aws-sdk-go] <ErrorResponse xmlns="http://cloudformation.amazonaws.com/doc/2010-05-15/">
<Error>
<Type>Sender</Type>
<Code>ValidationError</Code>
<Message>No updates are to be performed.</Message>
</Error>
<RequestId>8068ce62-0ac2-46e3-babf-08d0a07b323c</RequestId>
</ErrorResponse>: timestamp=2021-07-21T11:56:00.439-0700
2021-07-21T11:56:00.439-0700 [INFO] provider.terraform-provider-aws_v3.50.0_x5: 2021/07/21 11:56:00 [DEBUG] [aws-sdk-go] DEBUG: Validate Response cloudformation/UpdateStack failed, attempt 0/25, error ValidationError: No updates are to be performed.
status code: 400, request id: 8068ce62-0ac2-46e3-babf-08d0a07b323c: timestamp=2021-07-21T11:56:00.439-0700
2021-07-21T11:56:00.439-0700 [INFO] provider.terraform-provider-aws_v3.50.0_x5: 2021/07/21 11:56:00 [DEBUG] Current CloudFormation stack has no updates: timestamp=2021-07-21T11:56:00.439-0700
2021-07-21T11:56:00.439-0700 [INFO] provider.terraform-provider-aws_v3.50.0_x5: 2021/07/21 11:56:00 [DEBUG] Waiting for state to become: [CREATE_COMPLETE UPDATE_COMPLETE UPDATE_ROLLBACK_COMPLETE UPDATE_ROLLBACK_FAILED]: timestamp=2021-07-21T11:56:00.439-0700
aws_cloudformation_stack.test-stack: Still modifying... [id=arn:aws:cloudformation:us-west-2:586122...k/9b81b940-ea52-11eb-835a-0a92558e38af, 10s elapsed]
[SNIP]
aws_cloudformation_stack.test-stack: Modifications complete after 11s [id=arn:aws:cloudformation:us-west-2:586122851592:stack/test-stack/9b81b940-ea52-11eb-835a-0a92558e38af]
2021-07-21T12:13:53.688-0700 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2021-07-21T12:13:53.694-0700 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/aws/3.50.0/darwin_amd64/terraform-provider-aws_v3.50.0_x5 pid=84086
2021-07-21T12:13:53.694-0700 [DEBUG] provider: plugin exited
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment