Note: The TTL field is named expiresOn.
entity | PK | SK | other fields |
---|---|---|---|
trigger | TR#<triggerType>#<triggerID> | (same as PK) | triggerId:S, triggerFields:S(stringifiedJson), triggerEvents:S(StringifiedJson), triggerType(instrument_price|prev_day_change), expiresOn(if trigger deleted: only for triggerType=prev_day_change) |
trigger event | TR#<triggerType>#<triggerID> | EV#<eventId(timestamp)> | triggerEvent:S(StringifiedJson), expiresOn (1 day) |
instrument | INSTRUMENT | EPIC#<epic> | epic:S, description:S, symbol:S |
An introduction to dynamoDB can be found here
Partition and sort key best practices can be found here
you need:
- copilot cli
- aws cli
- git
- mvn
- java11+
- make
- sam cli
- docker
- python3 (and pip)
Assuming git and make installed:
sudo apt install maven docker.io docker-compose awscli python3-pip
Follow instructions to install sam cli in particular about installing brew
brew install aws/tap/aws-sam-cli
brew install aws/tap/copilot-cli