Skip to content

Instantly share code, notes, and snippets.

@chris-feist
Last active March 6, 2019 05:00
Show Gist options
  • Save chris-feist/9163241add07615a1b384c101391f48b to your computer and use it in GitHub Desktop.
Save chris-feist/9163241add07615a1b384c101391f48b to your computer and use it in GitHub Desktop.
resources:
tables:
Users:
name: ${opt:stage}-Users # Table name
partitionKey: userId
sortKey: state
indexes:
# Global Secondary Index
- name: EmailIndex
partitionKey: email
projection: all
# Local Secondary Index with custom projection
- name: UsersByAgeIndex
sortKey:
name: age
type: number
projection:
- userId
- dob
- firstName
- lastName
tags:
# Resource tags
STAGE: test
TEAM: backend
streamType: newItem
encrypted: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment