Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.27 KB

README.md

File metadata and controls

60 lines (45 loc) · 1.27 KB

Serverless Backend

Serverless scripts to install and update all the backend systems

Sets up following:

  • DynamoDB tables
  • Cognito UserPools, IndentityPools
  • Lambdas that receive alerts from the clients and publish them to FIA
  • S3 Buckets
  • Route53 configuration for DNS names and SSL sertificate
  • API Gateway
  • Admin UI to S3
  • CloudFront for distributing Admin UI

Exposed API endpoints

See API Gateway console

Development

Install dependencies

pip install awscli --upgrade --user
sudo apt-get install jq

Configuration

~/.aws/config:

[profile rptf]
output = json
region = us-east-1

~/.aws/credentials:

[rptf]
aws_secret_access_key = <insert-secret-here>
aws_access_key_id = <insert-access-key-here>

Update variables.yml values for your environment.

Deploying

export AWS_PROFILE=rptf
./up.sh <your-stage-name>

NOTES

  • Deploying for the first time takes a rather long e.g 15-20 minutes due to CloudFront deployment.
  • up.sh script has been developed with Linux, results may vary with MacOS.

After deploying

You'll need to create some user accounts in Cognito to enable access to Admin UI.

TODO

  • Image upload is not working currently