Open givp opened 3 years ago
Could you run terraform version
and paste the output here? :slightly_smiling_face: Thanks!
Or maybe we can schedule a video call if it is faster.
Could you run
terraform version
and paste the output here? 🙂 Thanks! @zheli
▻ terraform version
Terraform v1.0.1
on darwin_amd64
+ provider registry.terraform.io/hashicorp/archive v2.2.0
+ provider registry.terraform.io/hashicorp/aws v3.47.0
+ provider registry.terraform.io/hashicorp/null v3.1.0
Does that S3 bucket exist? :slightly_smiling_face: My Terraform script doesn't create the bucket automatically, but I can add that of course.
If the S3 bucket exists, perhaps you can try TF_LOG=DEBUG terraform apply -var="account_id=123456789" -var="s3=terraform-scripts". And look for something like this:
2021-06-30T19:28:04.659+0200 [INFO] provider.terraform-provider-aws_v3.47.0_x5: 2021/06/30 19:28:04 [DEBUG] [aws-sdk-go] DEBUG: Response synthetics/CreateCanary Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 400 Bad Request
Content-Length: 66
Content-Type: application/json
Date: Wed, 30 Jun 2021 17:28:04 GMT
X-Amz-Apigw-Id: Bv9w0HwoDoEFiNg=
X-Amzn-Errortype: ValidationException
X-Amzn-Requestid: 72325451-5968-4c16-b999-d3221e7f8254
X-Amzn-Trace-Id: Root=1-60dca99e-455c9e273c53d687078c4d0c
-----------------------------------------------------: timestamp=2021-06-30T19:28:04.659+0200
2021-06-30T19:28:04.659+0200 [INFO] provider.terraform-provider-aws_v3.47.0_x5: 2021/06/30 19:28:04 [DEBUG] [aws-sdk-go] {
"Message" : "{reason why the request failed}"
}: timestamp=2021-06-30T19:28:04.659+0200
@givp
If the S3 bucket exists, perhaps you can try TF_LOG=DEBUG terraform apply -var="account_id=123456789" -var="s3=terraform-scripts". And look for something like this:
2021-06-30T19:28:04.659+0200 [INFO] provider.terraform-provider-aws_v3.47.0_x5: 2021/06/30 19:28:04 [DEBUG] [aws-sdk-go] DEBUG: Response synthetics/CreateCanary Details: ---[ RESPONSE ]-------------------------------------- HTTP/2.0 400 Bad Request Content-Length: 66 Content-Type: application/json Date: Wed, 30 Jun 2021 17:28:04 GMT X-Amz-Apigw-Id: Bv9w0HwoDoEFiNg= X-Amzn-Errortype: ValidationException X-Amzn-Requestid: 72325451-5968-4c16-b999-d3221e7f8254 X-Amzn-Trace-Id: Root=1-60dca99e-455c9e273c53d687078c4d0c -----------------------------------------------------: timestamp=2021-06-30T19:28:04.659+0200 2021-06-30T19:28:04.659+0200 [INFO] provider.terraform-provider-aws_v3.47.0_x5: 2021/06/30 19:28:04 [DEBUG] [aws-sdk-go] { "Message" : "{reason why the request failed}" }: timestamp=2021-06-30T19:28:04.659+0200
@zheli thanks, I'll give that a try.
When I try to create the canaries, I get an error like this for every test in the terminal. Any ideas?