-
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
resource/aws_synthetics_canary: error reading Synthetics Canary name #18636
Comments
fwiw, we also hit this issue with version |
Getting a similar issue with 3.36.0: aws_synthetics_canary.mycw_canary_tf_test: Creating... │ Error: error starting Synthetics Canary: InvalidParameter: 1 validation error(s) found. Do you have a time frame to be able to look into this? Thank you! |
getting the same error with 3.37.0 Error: error reading Synthetics Canary: InvalidParameter: 1 validation error(s) found.
|
I had the same issue and it turned out that the artifact bucket had to defined with 's3://...' like:
I hope that helps. |
I had further debug this on my case. For my case, it's just a stupid error at |
Did anyone try with this PR and see if the validations are fixed? https://github.com/MaksymBilenko/terraform-provider-synthetics |
I have just tried it out. It works with adjustment. See issue MaksymBilenko/terraform-provider-synthetics#10 |
I just came across this - as apparent with other people's cases, it seems the validation message is incorrect. Checking the debug logs, I got an HTTP 400 Bad Request response with the message |
The validations are not fixed as of 06/22/2021. I got the same error for the
|
I had the same issue, problem was with schedule. I changed rate(5 minutes) to rate(1 minutes) and forgot to remove (s) in the end. |
Yeah, each of those small issues (forgetting the s, adding the s when it is not needed), plus other validation errors all give the same validation error. The error messages need to be updated to reflect what failed, otherwise, you have to look through your code to find the offending issues. |
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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Terraform CLI and Terraform AWS Provider Version
3.35.0
Affected Resource(s)
Description
In aws_synthetics_canary resource , argument "name" not able to read the provided input value
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
aws_synthetics_canary.wbox-es-endpoint: Creating...
Error: error reading Synthetics Canary: InvalidParameter: 1 validation error(s) found.
minimum field size of 1, GetCanaryInput.Name.
on canary.tf line 58, in resource "aws_synthetics_canary" "wbox-es-endpoint":
resource "aws_synthetics_canary" "wbox-es-endpoint" {
Panic Output
Expected Behavior
Terraform should be able to create a canary
Actual Behavior
aws_synthetics_canary.wbox-es-endpoint: Creating...
Error: error reading Synthetics Canary: InvalidParameter: 1 validation error(s) found.
minimum field size of 1, GetCanaryInput.Name.
on canary.tf line 58, in resource "aws_synthetics_canary" "wbox-es-endpoint":
resource "aws_synthetics_canary" "wbox-es-endpoint" {
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: