-
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
Bad key value in s3 data source causes crash #14151
Comments
Relevant part of crash log:
Related: |
The fix for this has been merged and will release with version 3.10.0 of the Terraform AWS Provider, later this week. Thanks to @ewbankkit for the implementation. 👍 |
This has been released in version 3.10.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 for triage. Thanks! |
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
Terraform v0.12.21
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/johnkeates/6f16cce6357fa1c20c16c9077939b996
Expected Behavior
An error should have been shown, either passed down from the AWS SDK or from the provider as this input can never result in any correct result.
Actual Behavior
The provider crashed
Steps to Reproduce
terraform apply
Factoid
I accidentally came across this because I was using the output of a resource to pipe via interpolation in to this data item, and the resource returned an empty string. Both the empty string and a slash cause this behaviour. While this is not valid use of the data item it should also not crash the provider and cause terraform to get a dropped RPC pipe. A true empty string returns an:
but if your string is "/" it crashes.
The text was updated successfully, but these errors were encountered: