cloudnative / lambda-chat

A chat application without servers - using only AWS Lambda, S3, DynamoDB and SNS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document S3 object JSON format

pas256 opened this issue · comments

The file written by Lambda, and read by the website

Perhaps this with messages being limited to the last 20 in chronological order:

{
  "messages": [
    {"name":"Peter", "message":"Hello there"},
    {"name":"Mitch", "message":"Hi Peter"},
    {"name":"Peter", "message":"How are you"},
    {"name":"Mitch", "message":"Happy because I am coding"}
  ]
}

Location of this file will come from config.yml

s3://s3_bucket/data_key

The Lambda function is already using this... it seems we are done