-
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
resource/aws_ec2_managed_prefix_list: The plugin encountered an error, and failed to respond to the #19421
Comments
Relevant code: terraform-provider-aws/aws/resource_aws_ec2_managed_prefix_list.go Lines 250 to 257 in 251e5ae
|
I can reproduce this with a slightly modified acceptance test: % make testacc TEST=./aws TESTARGS='-run=TestAccAwsEc2ManagedPrefixList_Entry_Description'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsEc2ManagedPrefixList_Entry_Description -timeout 180m
=== RUN TestAccAwsEc2ManagedPrefixList_Entry_Description
=== PAUSE TestAccAwsEc2ManagedPrefixList_Entry_Description
=== CONT TestAccAwsEc2ManagedPrefixList_Entry_Description
panic: runtime error: index out of range [1] with length 1
goroutine 1081 [running]:
github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsEc2ManagedPrefixListUpdate(0xc0021f6680, 0x8047f40, 0xc002b52000, 0x0, 0xffffffffffffffff)
/Users/ewbankkit/src/github.com/terraform-providers/terraform-provider-aws/aws/resource_aws_ec2_managed_prefix_list.go:253 +0x1e4a
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).update(0xc0016a4620, 0x9f182a8, 0xc0020e65c0, 0xc0021f6680, 0x8047f40, 0xc002b52000, 0x0, 0x0, 0x0)
/Users/ewbankkit/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:352 +0x1ee
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).Apply(0xc0016a4620, 0x9f182a8, 0xc0020e65c0, 0xc002292690, 0xc00416a9c0, 0x8047f40, 0xc002b52000, 0xc003162130, 0x7e5a8a0, 0xc0022c0c00, ...)
/Users/ewbankkit/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/resource.go:464 +0x390
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*GRPCProviderServer).ApplyResourceChange(0xc003c26b70, 0x9f182a8, 0xc0020e65c0, 0xc00239f900, 0xc0020e65c0, 0x8c51dc0, 0xc0022ade00)
/Users/ewbankkit/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/[email protected]/helper/schema/grpc_provider.go:955 +0x8ef
github.com/hashicorp/terraform-plugin-go/tfprotov5/server.(*server).ApplyResourceChange(0xc002760260, 0x9f18350, 0xc0020e65c0, 0xc0022925b0, 0xc002760260, 0xc0022ade90, 0xc003cccba0)
/Users/ewbankkit/go/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/server/server.go:332 +0xb5
github.com/hashicorp/terraform-plugin-go/tfprotov5/internal/tfplugin5._Provider_ApplyResourceChange_Handler(0x8c51dc0, 0xc002760260, 0x9f18350, 0xc0022ade90, 0xc002ee8480, 0x0, 0x9f18350, 0xc0022ade90, 0xc003ca8800, 0x381)
/Users/ewbankkit/go/pkg/mod/github.com/hashicorp/[email protected]/tfprotov5/internal/tfplugin5/tfplugin5_grpc.pb.go:380 +0x214
google.golang.org/grpc.(*Server).processUnaryRPC(0xc0038eafc0, 0x9f42498, 0xc0048c3680, 0xc0021f2500, 0xc001d92540, 0xdca9c60, 0x0, 0x0, 0x0)
/Users/ewbankkit/go/pkg/mod/google.golang.org/[email protected]/server.go:1194 +0x52b
google.golang.org/grpc.(*Server).handleStream(0xc0038eafc0, 0x9f42498, 0xc0048c3680, 0xc0021f2500, 0x0)
/Users/ewbankkit/go/pkg/mod/google.golang.org/[email protected]/server.go:1517 +0xd0c
google.golang.org/grpc.(*Server).serveStreams.func1.2(0xc000d00600, 0xc0038eafc0, 0x9f42498, 0xc0048c3680, 0xc0021f2500)
/Users/ewbankkit/go/pkg/mod/google.golang.org/[email protected]/server.go:859 +0xab
created by google.golang.org/grpc.(*Server).serveStreams.func1
/Users/ewbankkit/go/pkg/mod/google.golang.org/[email protected]/server.go:857 +0x1fd
FAIL github.com/terraform-providers/terraform-provider-aws/aws 20.161s
FAIL
make: *** [testacc] Error 1 |
This has been released in version 3.43.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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
$ terraform -v
Terraform v0.15.3
on darwin_amd64
Affected Resource(s)
Terraform Configuration Files
None.
Debug Output
None.
Panic Output
https://gist.github.com/tcharewicz/309944f89409bcff10cbeada57db0331
Expected Behavior
Terraform should modify resouce, add or delete description.
Actual Behavior
Terraform crashed.
Steps to Reproduce
Important Factoids
None.
References
Three weeks ago there were a PR, that changed Behavior of that resource.
#19095
The same behavior you can observe at TF version 0.12.31 and 0.14.11. I do not make a test with TF 0.13.
The text was updated successfully, but these errors were encountered: