The limit imposed on maximum nonKeyAttributes across all secondary indexes on a DynamoDB table is incorrect. The CDK limits nonKeyAttributes to 20, but the current limit is 100. See here: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-secondary-indexes
The CDK synth will fail, reporting a 20 nonKeyAttributes limit has been breached. But the limit should be 100 nonKeyAttributes: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html#limits-secondary-indexes
'a maximum number of nonKeyAttributes across all of secondary indexes is 20'
This is :bug: Bug Report
Just hit this too. Thanks for submitting PR @johncrn
Thanks for reporting! It appears the limit was raised since that code was written!
Thanks for reporting! It appears the limit was raised since that code was written!
Yes, that's almost certainly correct, the old limits was committed almost 2 years back. Hard to believe the CDK has been around that long - onward and upward!