-
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
[Bug]: AWS Timestreamwrite Table resource does not accept multiple composite partition keys #32560
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
@saratnulu Thanks for raising this issue 👏.
|
@ewbankkit , is this because of the restriction in |
@saratnulu That was at the API level (have removed the Terraform schema |
@ewbankkit , I did validation post your message again and looks like i created a table by providing list of partition keys in name field as comma seperated values in aws console. I noticied this doesn't work as the attribute name is taken as "attr1, attr2" instead of 2 keys. So, its my ignorance. I agree with you that it's AWS API limitation. Though schema supports, API doesn't support multiple partition keys. You can close the bug now |
Closing with above comment |
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.0
AWS Provider Version
5.8.0
Affected Resource(s)
As per the AWS API reference, we can define a list of composite_partition_keys for a Timestream table
https://docs.aws.amazon.com/ko_kr/timestream/latest/developerguide/API_Schema.html#timestream-Type-Schema-CompositePartitionKey
timestreamwrite
resources to AWS SDK for Go v2 #32354 restricts defining only one partition key. This is restricting creating tables with multiple composite partition keys.Expected Behavior
As per AWS API reference composite partition keys is a list of maps. So, should accept the code as in below format
Actual Behavior
Above syntax is not allowed and also when we try to create composite_partition_keys as multiple blocks inside a schema block, i receive below error
Relevant Error/Panic Output Snippet
No response
Terraform Configuration Files
https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/timestreamwrite/table.go#L140
Steps to Reproduce
No way to define multiple composite partition keys for different dimension attributes
Debug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: