-
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
Crash at Aws Batch - Compute Environment Order. #8083
Comments
Adding log with 2.3.0, previously was using 1.55.0. Bug doesn't happen with 1.54.0.
|
…der is updated outside Terraform Reference: #8083 Also modernizes the testing. Previously: ``` === CONT TestAccAWSBatchJobQueue_ComputeEnvironments_ExternalOrderUpdate panic: runtime error: index out of range [1] with length 1 goroutine 1306 [running]: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsBatchJobQueueRead(0xc001117c70, 0x62e4cc0, 0xc0003bcf00, 0xc001117c70, 0x0) /Users/bflad/src/github.com/terraform-providers/terraform-provider-aws-deux/aws/resource_aws_batch_job_queue.go:110 +0x55a github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0005df580, 0xc00104ae60, 0x62e4cc0, 0xc0003bcf00, 0xc000c7ec30, 0x0, 0x0) /Users/bflad/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.8.0/helper/schema/resource.go:455 +0x119 ``` Output from acceptance testing: ``` --- PASS: TestAccAWSBatchJobQueue_basic (85.28s) --- PASS: TestAccAWSBatchJobQueue_disappears (87.06s) --- PASS: TestAccAWSBatchJobQueue_ComputeEnvironments_ExternalOrderUpdate (98.67s) --- PASS: TestAccAWSBatchJobQueue_Priority (120.72s) --- PASS: TestAccAWSBatchJobQueue_State (127.15s) ```
Fix submitted: #12632 |
…der is updated outside Terraform (#12632) Reference: #8083 Also modernizes the testing. Previously: ``` === CONT TestAccAWSBatchJobQueue_ComputeEnvironments_ExternalOrderUpdate panic: runtime error: index out of range [1] with length 1 goroutine 1306 [running]: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsBatchJobQueueRead(0xc001117c70, 0x62e4cc0, 0xc0003bcf00, 0xc001117c70, 0x0) /Users/bflad/src/github.com/terraform-providers/terraform-provider-aws-deux/aws/resource_aws_batch_job_queue.go:110 +0x55a github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0005df580, 0xc00104ae60, 0x62e4cc0, 0xc0003bcf00, 0xc000c7ec30, 0x0, 0x0) /Users/bflad/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.8.0/helper/schema/resource.go:455 +0x119 ``` Output from acceptance testing: ``` --- PASS: TestAccAWSBatchJobQueue_basic (85.28s) --- PASS: TestAccAWSBatchJobQueue_disappears (87.06s) --- PASS: TestAccAWSBatchJobQueue_ComputeEnvironments_ExternalOrderUpdate (98.67s) --- PASS: TestAccAWSBatchJobQueue_Priority (120.72s) --- PASS: TestAccAWSBatchJobQueue_State (127.15s) ```
The fix for this has been merged and will release with version 2.60.0 of the Terraform AWS Provider, later this week. 👍 |
Many thanks for all your help! Fully appreciate it |
This has been released in version 2.60.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! |
…der is updated outside Terraform (hashicorp#12632) Reference: hashicorp#8083 Also modernizes the testing. Previously: ``` === CONT TestAccAWSBatchJobQueue_ComputeEnvironments_ExternalOrderUpdate panic: runtime error: index out of range [1] with length 1 goroutine 1306 [running]: github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsBatchJobQueueRead(0xc001117c70, 0x62e4cc0, 0xc0003bcf00, 0xc001117c70, 0x0) /Users/bflad/src/github.com/terraform-providers/terraform-provider-aws-deux/aws/resource_aws_batch_job_queue.go:110 +0x55a github.com/hashicorp/terraform-plugin-sdk/helper/schema.(*Resource).RefreshWithoutUpgrade(0xc0005df580, 0xc00104ae60, 0x62e4cc0, 0xc0003bcf00, 0xc000c7ec30, 0x0, 0x0) /Users/bflad/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk@v1.8.0/helper/schema/resource.go:455 +0x119 ``` Output from acceptance testing: ``` --- PASS: TestAccAWSBatchJobQueue_basic (85.28s) --- PASS: TestAccAWSBatchJobQueue_disappears (87.06s) --- PASS: TestAccAWSBatchJobQueue_ComputeEnvironments_ExternalOrderUpdate (98.67s) --- PASS: TestAccAWSBatchJobQueue_Priority (120.72s) --- PASS: TestAccAWSBatchJobQueue_State (127.15s) ```
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.11.13
Affected Resource(s)
aws_batch_job_queue
Terraform Configuration Files
Can't add them, I may need to add them individually.
Debug Output
https://gist.github.com/waltercool/d138918a1875c84d930654e35f8e776b
Panic Output
Expected Behavior
Work
Actual Behavior
Crash using provider.aws above 1.54.0. Works fine below or equal to 1.54.0
My darts points the problem happened after #7079
Steps to Reproduce
terraform init
2.a
terraform apply
2.b
terraform plan
Important Factoids
No
The text was updated successfully, but these errors were encountered: