Skip to content

Can I use an IndexName for a DynamoDB proxy? #69

Open
@ffiorillosparkdigital

Description

@ffiorillosparkdigital

Hi! I'm looking for a way to set up an endpoint that would use an index based on GSI, instead of using the primary Hash/Sort Key. Is this possible? I don't see any examples in the docs.

I tried adding this, but causes an error:
IndexName: user_id_index

apiGatewayServiceProxies:
- dynamodb:
path: /myapp/by_user/{user_id}
method: get
tableName: { Ref: 'myTable' }
IndexName: user_id_index
hashKey:
pathParam: user_id
attributeType: S
action: GetItem
cors: true

results in:

child "dynamodb" fails because ["IndexName" is not allowed]

Any help is appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions