-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.Automatically applied to new issues and PRs, indicating they haven't been looked at.type/featureFeature requestFeature request
Description
Describe your idea/feature/enhancement
AWS now supports GSIs with multi-attribute composite keys - https://aws.amazon.com/about-aws/whats-new/2025/11/amazon-dynamodb-multi-attribute-composite-keys-global-secondary-indexes/
Currently, sam validate --lint will fail as it expects a GSI to have a single HASH key. For example:
GlobalSecondaryIndexes:
- IndexName: myNewIndex
KeySchema:
- AttributeName: attributeA
KeyType: HASH
- AttributeName: attributeB
KeyType: HASH
- AttributeName: attributeC
KeyType: RANGE
Projection:
ProjectionType: ALL
Will fail with:
[[E3032: Check if a array has between min and max number of values specified] (expected maximum item count: 2, found: 3) matched 190, [E3002: Resource properties are invalid] ('RANGE' was expected) matched 194]
Error: Linting failed. At least one linting rule was matched to the provided template.
Proposal
Add details of how to add this to the product.
Things to consider:
- Will this require any updates to the SAM Spec
Additional Details
Metadata
Metadata
Assignees
Labels
stage/needs-triageAutomatically applied to new issues and PRs, indicating they haven't been looked at.Automatically applied to new issues and PRs, indicating they haven't been looked at.type/featureFeature requestFeature request