-
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/instance: Fix invalid address set #17136
Conversation
1b84870
to
3d22c96
Compare
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.
Looks good to me. Verified it breaks before schema update and passes after schema update. Not sure if this should close #17125 though since that report is for the resource.
Previously:
=== CONT TestAccAWSInstanceDataSource_blockDeviceTags
panic: Invalid address to set: []string{"ebs_block_device", "0", "tags"}
goroutine 634 [running]:
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*ResourceData).Set(0xc002221e00, 0x8367470, 0x10, 0x6cccf40, 0xc002ceeee0, 0x0, 0x1)
/Users/bflad/go/pkg/mod/github.com/hashicorp/terraform-plugin-sdk/v2@v2.4.0/helper/schema/resource_data.go:230 +0x36f
github.com/terraform-providers/terraform-provider-aws/aws.readBlockDevices(0xc002221e00, 0xc002a40200, 0xc000010fb0, 0x0, 0x0)
/Users/bflad/src/github.com/hashicorp/terraform-provider-aws-trois/aws/resource_aws_instance.go:1675 +0x445
github.com/terraform-providers/terraform-provider-aws/aws.instanceDescriptionAttributes(0xc002221e00, 0xc002a40200, 0xc000010fb0, 0x0, 0x1, 0xc0035575e0)
/Users/bflad/src/github.com/hashicorp/terraform-provider-aws-trois/aws/data_source_aws_instance.go:503 +0xa05
github.com/terraform-providers/terraform-provider-aws/aws.dataSourceAwsInstanceRead(0xc002221e00, 0x7612b60, 0xc001fc8c00, 0xce15040, 0x8833d30)
/Users/bflad/src/github.com/hashicorp/terraform-provider-aws-trois/aws/data_source_aws_instance.go:407 +0x5bd
github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Resource).read(0xc0013cf680, 0x928b160, 0xc002be2040, 0xc002221e00, 0x7612b60, 0xc001fc8c00, 0x0, 0x0, 0x0)
Output from acceptance testing after code changes:
--- PASS: TestAccAWSInstanceDataSource_AzUserData (78.98s)
--- PASS: TestAccAWSInstanceDataSource_basic (104.62s)
--- PASS: TestAccAWSInstanceDataSource_blockDevices (97.97s)
--- PASS: TestAccAWSInstanceDataSource_blockDeviceTags (118.77s)
--- PASS: TestAccAWSInstanceDataSource_creditSpecification (158.08s)
--- PASS: TestAccAWSInstanceDataSource_EbsBlockDevice_KmsKeyId (85.49s)
--- PASS: TestAccAWSInstanceDataSource_enclaveOptions (101.20s)
--- PASS: TestAccAWSInstanceDataSource_getPasswordData_falseToTrue (171.71s)
--- PASS: TestAccAWSInstanceDataSource_getPasswordData_trueToFalse (220.22s)
--- PASS: TestAccAWSInstanceDataSource_GetUserData (184.78s)
--- PASS: TestAccAWSInstanceDataSource_GetUserData_NoUserData (197.76s)
--- PASS: TestAccAWSInstanceDataSource_gp2IopsDevice (108.89s)
--- PASS: TestAccAWSInstanceDataSource_gp3ThroughputDevice (113.39s)
--- PASS: TestAccAWSInstanceDataSource_keyPair (112.68s)
--- PASS: TestAccAWSInstanceDataSource_metadataOptions (118.60s)
--- PASS: TestAccAWSInstanceDataSource_PlacementGroup (144.01s)
--- PASS: TestAccAWSInstanceDataSource_privateIP (115.89s)
--- PASS: TestAccAWSInstanceDataSource_RootBlockDevice_KmsKeyId (148.66s)
--- PASS: TestAccAWSInstanceDataSource_rootInstanceStore (123.05s)
--- PASS: TestAccAWSInstanceDataSource_secondaryPrivateIPs (114.98s)
--- PASS: TestAccAWSInstanceDataSource_SecurityGroups (108.75s)
--- PASS: TestAccAWSInstanceDataSource_tags (97.26s)
--- PASS: TestAccAWSInstanceDataSource_VPC (112.37s)
--- PASS: TestAccAWSInstanceDataSource_VPCSecurityGroups (114.48s)
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
Relates #17125
Release note for CHANGELOG:
Output from acceptance testing (commercial):
GovCloud:
Unrelated failures due to unsupported features: