-
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
[Bug]: Panic when importing aws_securitylake_data_lake
#34802
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
Relates #34521. |
I can reproduce with a new unit test: % go test -v -run=TestGenericFlattenCustomStringType ./internal/framework/flex
=== RUN TestGenericFlattenCustomStringType
=== PAUSE TestGenericFlattenCustomStringType
=== CONT TestGenericFlattenCustomStringType
=== RUN TestGenericFlattenCustomStringType/single_string_Source_and_single_ARN_Target
=== PAUSE TestGenericFlattenCustomStringType/single_string_Source_and_single_ARN_Target
=== RUN TestGenericFlattenCustomStringType/single_*string_Source_and_single_ARN_Target
=== PAUSE TestGenericFlattenCustomStringType/single_*string_Source_and_single_ARN_Target
=== RUN TestGenericFlattenCustomStringType/single_nil_*string_Source_and_single_ARN_Target
=== PAUSE TestGenericFlattenCustomStringType/single_nil_*string_Source_and_single_ARN_Target
=== CONT TestGenericFlattenCustomStringType/single_string_Source_and_single_ARN_Target
=== CONT TestGenericFlattenCustomStringType/single_nil_*string_Source_and_single_ARN_Target
--- FAIL: TestGenericFlattenCustomStringType (0.00s)
--- FAIL: TestGenericFlattenCustomStringType/single_nil_*string_Source_and_single_ARN_Target (0.00s)
panic: reflect.Set: value of type basetypes.StringValue is not assignable to type types.ARN [recovered]
panic: reflect.Set: value of type basetypes.StringValue is not assignable to type types.ARN
goroutine 21 [running]:
testing.tRunner.func1.2({0x1557320, 0xc00006a070})
/Users/ewbankkit/sdk/go1.20.10/src/testing/testing.go:1526 +0x24e
testing.tRunner.func1()
/Users/ewbankkit/sdk/go1.20.10/src/testing/testing.go:1529 +0x39f
panic({0x1557320, 0xc00006a070})
/Users/ewbankkit/sdk/go1.20.10/src/runtime/panic.go:884 +0x213
reflect.Value.assignTo({0x15c6880?, 0xc000010030?, 0x18?}, {0x15e56ed, 0xb}, 0x15c9080, 0x0)
/Users/ewbankkit/sdk/go1.20.10/src/reflect/value.go:3245 +0x2a5
reflect.Value.Set({0x15c9080?, 0xc000432bd0?, 0x1c838e0?}, {0x15c6880?, 0xc000010030?, 0x12?})
/Users/ewbankkit/sdk/go1.20.10/src/reflect/value.go:2236 +0xeb
github.com/hashicorp/terraform-provider-aws/internal/framework/flex.autoFlattener.ptr({}, {0x18c9e90, 0xc00009c018}, {0x154bf80?, 0xc0000a4ad0?, 0x0?}, {0x18cb998?, 0x1c9a638}, {0x15c9080, 0xc000432bd0, ...})
/Users/ewbankkit/src/github.com/terraform-providers/terraform-provider-aws/internal/framework/flex/autoflex.go:1042 +0x986
github.com/hashicorp/terraform-provider-aws/internal/framework/flex.autoFlattener.convert({}, {0x18c9e90, 0xc00009c018}, {0x154bf80?, 0xc0000a4ad0?, 0xc000028058?}, {0x15c9080?, 0xc000432bd0?, 0x0?})
/Users/ewbankkit/src/github.com/terraform-providers/terraform-provider-aws/internal/framework/flex/autoflex.go:874 +0x38e
github.com/hashicorp/terraform-provider-aws/internal/framework/flex.autoFlexConvertStruct({0x18c9e90, 0xc00009c018}, {0x1546ec0?, 0xc0000a4ad0?}, {0x1547700?, 0xc000432bd0?}, {0x18c72e0, 0x1c9a638})
/Users/ewbankkit/src/github.com/terraform-providers/terraform-provider-aws/internal/framework/flex/autoflex.go:156 +0x358
github.com/hashicorp/terraform-provider-aws/internal/framework/flex.autoFlexConvert({0x18c9e90, 0xc00009c018}, {0x1546ec0, 0xc0000a4ad0}, {0x1547700, 0xc000432bd0}, {0x18c72e0?, 0x1c9a638?})
/Users/ewbankkit/src/github.com/terraform-providers/terraform-provider-aws/internal/framework/flex/autoflex.go:99 +0x287
github.com/hashicorp/terraform-provider-aws/internal/framework/flex.Flatten({0x18c9e90, 0xc00009c018}, {0x1546ec0, 0xc0000a4ad0}, {0x1547700, 0xc000432bd0}, {0x0, 0x0, 0x1056e1f?})
/Users/ewbankkit/src/github.com/terraform-providers/terraform-provider-aws/internal/framework/flex/autoflex.go:65 +0xf8
github.com/hashicorp/terraform-provider-aws/internal/framework/flex.TestGenericFlattenCustomStringType.func1(0xc000442340)
/Users/ewbankkit/src/github.com/terraform-providers/terraform-provider-aws/internal/framework/flex/autoflex_test.go:1498 +0x8d
testing.tRunner(0xc000442340, 0xc000432d90)
/Users/ewbankkit/sdk/go1.20.10/src/testing/testing.go:1576 +0x10b
created by testing.(*T).Run
/Users/ewbankkit/sdk/go1.20.10/src/testing/testing.go:1629 +0x3ea
FAIL github.com/hashicorp/terraform-provider-aws/internal/framework/flex 0.255s
FAIL |
This functionality has been released in v5.31.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 issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Terraform Core Version
1.6.5
AWS Provider Version
5.30.0
Affected Resource(s)
aws_securitylake_data_lake
Expected Behavior
To plan successfully
Actual Behavior
When planning an
import
ofaws_securitylake_data_lake
, the provider panics.Provider panics with the same trace for both workflows.
Relevant Error/Panic Output Snippet
Terraform Configuration Files
terraform plan -generate-config-out generate.tf
terraform plan
Steps to Reproduce
terraform plan -generate-config-out generate.tf
terraform plan
Debug Output
Debug logs posted in support case ID #133461 with HashiCorp Support.
Panic Output
Important Factoids
No response
References
No response
Would you like to implement a fix?
None
The text was updated successfully, but these errors were encountered: