-
Notifications
You must be signed in to change notification settings - Fork 397
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
dynamodb_table: local indexes are not generated #1825
Comments
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Jun 8, 2023
dynamodb_table: secondary indexes are now created SUMMARY Fixes: #1825 Possibly by a typo, the index definition being checked was over-defined by an empty dict here. Without that line the index processing proceeds fine. ISSUE TYPE Bugfix Pull Request COMPONENT NAME dynamodb_table Reviewed-by: Mark Chappell Reviewed-by: Markus Bergholz <[email protected]>
patchback bot
pushed a commit
that referenced
this issue
Jun 8, 2023
dynamodb_table: secondary indexes are now created SUMMARY Fixes: #1825 Possibly by a typo, the index definition being checked was over-defined by an empty dict here. Without that line the index processing proceeds fine. ISSUE TYPE Bugfix Pull Request COMPONENT NAME dynamodb_table Reviewed-by: Mark Chappell Reviewed-by: Markus Bergholz <[email protected]> (cherry picked from commit 1f5c143)
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Jul 3, 2023
[PR #1826/1f5c1438 backport][stable-6] dynamodb_table: secondary indexes are now created This is a backport of PR #1826 as merged into main (1f5c143). SUMMARY Fixes: #1825 Possibly by a typo, the index definition being checked was over-defined by an empty dict here. Without that line the index processing proceeds fine. ISSUE TYPE Bugfix Pull Request COMPONENT NAME dynamodb_table Reviewed-by: Mark Chappell
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When I try to define a Local Secondary Index for a DynamoDB table, the
LocalSecondaryIndexes
param is not generated at all.Moreover, the keys used by the local indices are added to the
AttributeDefinitions
, so we will get this error:botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the CreateTable operation: One or more parameter values were invalid: Number of attributes in KeySchema does not exactly match number of attributes defined in AttributeDefinitions
The reason is a possible typo here where the index being inspected is just discarded.****
Issue Type
Bug Report
Component Name
dynamodb_table
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Steps to Reproduce
Expected Results
I expected the LSI to be created
Actual Results
The
LocalSecondaryIndexes
param is not generated at all.Code of Conduct
The text was updated successfully, but these errors were encountered: