-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
aws_iot_topic_rule fails to parse SQS in response #7334
Comments
It looks like the code is unsafely assuming Relevant portion from logs:
|
@bflad Agreed! The aws docs aren't explicit with whats nullable. I'll update the ticket description to include a false or null value for the base64 encoding. |
… attribute in API response Reference: #7334 Output from acceptance testing: ``` --- PASS: TestAccAWSIoTTopicRule_lambda (8.86s) --- PASS: TestAccAWSIoTTopicRule_basic (9.29s) --- PASS: TestAccAWSIoTTopicRule_cloudwatchalarm (9.29s) --- PASS: TestAccAWSIoTTopicRule_s3 (9.31s) --- PASS: TestAccAWSIoTTopicRule_cloudwatchmetric (9.35s) --- PASS: TestAccAWSIoTTopicRule_sns (9.35s) --- PASS: TestAccAWSIoTTopicRule_firehose (9.39s) --- PASS: TestAccAWSIoTTopicRule_republish (9.41s) --- PASS: TestAccAWSIoTTopicRule_sqs (9.43s) --- PASS: TestAccAWSIoTTopicRule_kinesis (9.43s) --- PASS: TestAccAWSIoTTopicRule_importbasic (9.96s) --- PASS: TestAccAWSIoTTopicRule_elasticsearch (13.07s) --- PASS: TestAccAWSIoTTopicRule_firehose_separator (13.55s) ```
Fix submitted. 😄 #7337 |
The fix for this has been merged and will release with version 1.57.0 of the Terraform AWS provider, likely later today. 👍 |
Thanks @bflad !! 🎉 |
This has been released in version 1.57.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/rraub/fb1d48916ca5606e6048e924461ba641
Panic Output
Expected Behavior
An IoT Topic Rule with an SQS action can be updated from Terraform.
Actual Behavior
Terraform AWS provider fails to parse the AWS response in
iot/GetTopicRule
Steps to Reproduce
terraform apply
terraform apply
Important Factoids
The SQS is also a terraform managed resource, but I don't think that matters.
References
https://docs.aws.amazon.com/cli/latest/reference/iot/get-topic-rule.html
Line that throws the error in structure.go
#0000
The text was updated successfully, but these errors were encountered: