-
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
d/aws_ecs_task_execution
: Fix interface conversion panics
#30214
Conversation
It seems like many of these type assertions are incorrect, running locally I found terraform would panic with things like: panic: interface conversion: interface {} is *schema.Set, not []interface {} These changes correct many of them however it's far from incomplete because the overrides end up with the zero values in places like cpu, memory etc. Someone who knows more about terraform internal types could use this as a starting point. I can take it forward if I have the time.
Community NoteVoting for Prioritization
For Submitters
|
d/aws_ecs_task_execution
: Fix interface conversion panics
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 🎸
$ make testacc PKG=ecs TESTS=TestAccECSTaskExecutionDataSource_
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecs/... -v -count 1 -parallel 20 -run='TestAccECSTaskExecutionDataSource_' -timeout 180m
=== RUN TestAccECSTaskExecutionDataSource_basic
=== PAUSE TestAccECSTaskExecutionDataSource_basic
=== RUN TestAccECSTaskExecutionDataSource_overrides
=== PAUSE TestAccECSTaskExecutionDataSource_overrides
=== RUN TestAccECSTaskExecutionDataSource_tags
=== PAUSE TestAccECSTaskExecutionDataSource_tags
=== CONT TestAccECSTaskExecutionDataSource_basic
=== CONT TestAccECSTaskExecutionDataSource_tags
=== CONT TestAccECSTaskExecutionDataSource_overrides
--- PASS: TestAccECSTaskExecutionDataSource_overrides (288.81s)
--- PASS: TestAccECSTaskExecutionDataSource_tags (362.57s)
--- PASS: TestAccECSTaskExecutionDataSource_basic (414.80s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecs 418.147s
Thanks for your contribution, @davbo! 👏 |
This functionality has been released in v4.61.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. |
Description
It seems like many of these type assertions are incorrect, running locally I found terraform would panic with things like:
These changes correct many of them however it's far from complete because the overrides end up with the zero values in places like cpu, memory etc.
Someone who knows more about terraform internal types could use this as a starting point. I can take it forward if I have the time.
Relations
Relates #29783
References
Output from Acceptance Testing