Skip to content

Multi-key support for DynamoDB GSIs #4179

@petro2050

Description

@petro2050

Describe the feature

Recently, multi-key support for DynamoDB GSIs was introduced https://aws.amazon.com/blogs/database/multi-key-support-for-global-secondary-index-in-amazon-dynamodb/.

I'm trying to create a GlobalSecondaryIndex from namespace Amazon.DynamoDBv2.Model. However, it seems the KeySchema does not support multi-attribute hash and sort keys. When running tests locally, I received Key Schema must at most consist of the hash and range key of a table.

Note that I was able to create multi-key GSIs via CDK in production. For development and testing, I use DynamoDB local. Can the SDK have parity with CDK?

Use Case

This will help me run manual and automated tests to ensure the multi-key GSIs are configured correctly and we can read from them.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS .NET SDK and/or Package version used

AWSSDK.DynamoDBv2 4.0.10.1

Targeted .NET Platform

.NET 10

Operating System and version

macOS Sequoia

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions