-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r/aws_synthetics_canary: Correctly report creation errors #20463
Conversation
Error: error reading Synthetics Canary: InvalidParameter: 1 validation error(s) found. - minimum field size of 1, GetCanaryInput.Name. Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSSyntheticsCanary_basic' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSyntheticsCanary_basic -timeout 180m === RUN TestAccAWSSyntheticsCanary_basic === PAUSE TestAccAWSSyntheticsCanary_basic === CONT TestAccAWSSyntheticsCanary_basic resource_aws_synthetics_canary_test.go:83: Step 1/3 error: Error running apply: exit status 1 Error: error creating Synthetics Canary (tf-acc-test-lhi0ieu0): ValidationException: Deprecated runtime version specified. with aws_synthetics_canary.test, on terraform_plugin_test.tf line 92, in resource "aws_synthetics_canary" "test": 92: resource "aws_synthetics_canary" "test" { --- FAIL: TestAccAWSSyntheticsCanary_basic (16.35s) FAIL FAIL github.com/terraform-providers/terraform-provider-aws/aws 19.448s FAIL make: *** [testacc] Error 1
Acceptance test output: % make testacc TEST=./aws TESTARGS='-run=TestAccAWSSyntheticsCanary_basic' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSSyntheticsCanary_basic -timeout 180m === RUN TestAccAWSSyntheticsCanary_basic === PAUSE TestAccAWSSyntheticsCanary_basic === CONT TestAccAWSSyntheticsCanary_basic --- PASS: TestAccAWSSyntheticsCanary_basic (87.73s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 91.049s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
This functionality has been released in v3.54.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Closes #18636.
Closes #18616.
The underlying problem was the retry logic around create - The error code wasn't being checked which meant that
resourceAwsSyntheticsCanaryRead()
(and hencefinder.CanaryByName()
) was being called whend.SetId()
hadn't.After correcting that, the underlying acceptance tests errors were all related to an out-of-date runtime.
Output from acceptance testing:
Commercial
GovCloud