Skip to content

Instantly share code, notes, and snippets.

@finferflu
Created June 17, 2019 08:42
Show Gist options
  • Save finferflu/ac1ca95a43ecd2f9267fd2d73e1830b5 to your computer and use it in GitHub Desktop.
Save finferflu/ac1ca95a43ecd2f9267fd2d73e1830b5 to your computer and use it in GitHub Desktop.
Terraform output while modifying a CloudFront distribution
2019-06-17T08:13:55.273Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: 2019/06/17 08:13:55 [DEBUG] [aws-sdk-go] DEBUG: Retrying Request cloudfront/UpdateDistribution2018_11_05, attempt 13
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: 2019/06/17 08:13:55 [DEBUG] [aws-sdk-go] DEBUG: Request cloudfront/UpdateDistribution2018_11_05 Details:
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: ---[ REQUEST POST-SIGN ]-----------------------------
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: PUT /2018-11-05/distribution/E1PUVB1D6VRBGW/config HTTP/1.1
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Host: cloudfront.amazonaws.com
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: User-Agent: aws-sdk-go/1.19.49 (go1.12.5; linux; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.12.1
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Content-Length: 3854
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Authorization: AWS4-HMAC-SHA256 Credential=AKIAIFYKT57RFXIYFMEA/20190617/us-east-1/cloudfront/aws4_request, SignedHeaders=content-length;host;if-match;x-amz-date, Signature=5d62dba2d042646c0ea67539a200b4c7bd4896203fcda37057cc153891fdcc1f
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: If-Match: E1J0LZIATLACEK
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: X-Amz-Date: 20190617T081355Z
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Accept-Encoding: gzip
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4:
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: <DistributionConfig xmlns="http://cloudfront.amazonaws.com/doc/2018-11-05/"><CacheBehaviors><Items><CacheBehavior><AllowedMethods><CachedMethods><Items><Method>GET</Method><Method>HEAD</Method></Items><Quantity>2</Quantity></CachedMethods><Items><Method>GET</Method><Method>HEAD</Method></Items><Quantity>2</Quantity></AllowedMethods><Compress>false</Compress><ViewerProtocolPolicy>allow-all</ViewerProtocolPolicy><LambdaFunctionAssociations><Items></Items><Quantity>0</Quantity></LambdaFunctionAssociations><MaxTTL>63072000</MaxTTL><MinTTL>0</MinTTL><PathPattern>images/presets/*</PathPattern><SmoothStreaming>false</SmoothStreaming><DefaultTTL>0</DefaultTTL><FieldLevelEncryptionId></FieldLevelEncryptionId><ForwardedValues><Cookies><Forward>none</Forward><WhitelistedNames><Items></Items><Quantity>0</Quantity></WhitelistedNames></Cookies><Headers><Items></Items><Quantity>0</Quantity></Headers><QueryString>false</QueryString><QueryStringCacheKeys><Items></Items><Quantity>0</Quantity></QueryStringCacheKeys></ForwardedValues><TargetOriginId>S3-domain-assets-staging</TargetOriginId><TrustedSigners><Enabled>false</Enabled><Quantity>0</Quantity></TrustedSigners></CacheBehavior></Items><Quantity>1</Quantity></CacheBehaviors><DefaultRootObject></DefaultRootObject><Enabled>true</Enabled><Logging><Prefix></Prefix><Bucket></Bucket><Enabled>false</Enabled><IncludeCookies>false</IncludeCookies></Logging><Origins><Items><Origin><CustomHeaders><Items></Items><Quantity>0</Quantity></CustomHeaders><CustomOriginConfig><HTTPPort>80</HTTPPort><HTTPSPort>443</HTTPSPort><OriginKeepaliveTimeout>5</OriginKeepaliveTimeout><OriginProtocolPolicy>http-only</OriginProtocolPolicy><OriginReadTimeout>30</OriginReadTimeout><OriginSslProtocols><Items><SslProtocol>TLSv1.2</SslProtocol></Items><Quantity>1</Quantity></OriginSslProtocols></CustomOriginConfig><DomainName>domain-assets-staging.s3-website-eu-west-1.amazonaws.com</DomainName><Id>S3-domain-assets-staging</Id><OriginPath></OriginPath></Origin></Items><Quantity>1</Quantity></Origins><PriceClass>PriceClass_100</PriceClass><WebACLId></WebACLId><Comment>S3 distribution for staging assets bucket</Comment><DefaultCacheBehavior><AllowedMethods><Items><Method>GET</Method><Method>HEAD</Method></Items><Quantity>2</Quantity><CachedMethods><Items><Method>GET</Method><Method>HEAD</Method></Items><Quantity>2</Quantity></CachedMethods></AllowedMethods><Compress>false</Compress><DefaultTTL>31536000</DefaultTTL><FieldLevelEncryptionId></FieldLevelEncryptionId><MinTTL>0</MinTTL><SmoothStreaming>false</SmoothStreaming><TargetOriginId>S3-domain-assets-staging</TargetOriginId><TrustedSigners><Enabled>false</Enabled><Quantity>0</Quantity></TrustedSigners><ViewerProtocolPolicy>allow-all</ViewerProtocolPolicy><ForwardedValues><Cookies><Forward>none</Forward><WhitelistedNames><Quantity>0</Quantity><Items></Items></WhitelistedNames></Cookies><Headers><Quantity>0</Quantity><Items></Items></Headers><QueryString>false</QueryString><QueryStringCacheKeys><Items></Items><Quantity>0</Quantity></QueryStringCacheKeys></ForwardedValues><LambdaFunctionAssociations><Items></Items><Quantity>0</Quantity></LambdaFunctionAssociations><MaxTTL>63072000</MaxTTL></DefaultCacheBehavior><HttpVersion>http2</HttpVersion><CallerReference>2019-01-28T10:27:23.98540252Z</CallerReference><IsIPV6Enabled>true</IsIPV6Enabled><ViewerCertificate><CloudFrontDefaultCertificate>false</CloudFrontDefaultCertificate><MinimumProtocolVersion>TLSv1.2_2018</MinimumProtocolVersion></ViewerCertificate><Aliases><Items><CNAME>assets-staging.domain.tld</CNAME></Items><Quantity>1</Quantity></Aliases><CustomErrorResponses><Items></Items><Quantity>0</Quantity></CustomErrorResponses><Restrictions><GeoRestriction><Quantity>0</Quantity><RestrictionType>none</RestrictionType><Items></Items></GeoRestriction></Restrictions></DistributionConfig>
2019-06-17T08:13:55.274Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: -----------------------------------------------------
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: 2019/06/17 08:13:55 [DEBUG] [aws-sdk-go] DEBUG: Response cloudfront/UpdateDistribution2018_11_05 Details:
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: ---[ RESPONSE ]--------------------------------------
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: HTTP/1.1 500 Internal Server Error
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Connection: close
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Content-Length: 230
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Content-Type: text/xml
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: Date: Mon, 17 Jun 2019 08:13:55 GMT
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: X-Amzn-Requestid: d98919a9-90d7-11e9-a7b8-5d7d31f779b1
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4:
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4:
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: -----------------------------------------------------
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: 2019/06/17 08:13:55 [DEBUG] [aws-sdk-go] <?xml version="1.0"?>
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: <ErrorResponse xmlns="http://cloudfront.amazonaws.com/doc/2018-11-05/"><Error><Type>Receiver</Type><Code>InternalError</Code></Error><RequestId>d98919a9-90d7-11e9-a7b8-5d7d31f779b1</RequestId></ErrorResponse>
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: 2019/06/17 08:13:55 [DEBUG] [aws-sdk-go] DEBUG: Validate Response cloudfront/UpdateDistribution2018_11_05 failed, not retrying, error InternalError:
2019-06-17T08:13:55.364Z [DEBUG] plugin.terraform-provider-aws_v2.15.0_x4: status code: 500, request id: d98919a9-90d7-11e9-a7b8-5d7d31f779b1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment