Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.3 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.3 KB

Event Pipeline

An implementation of an events state machine using AWS Step Functions and the Serverless framework.

Linting

black src tests fixtures && isort -rc src tests fixtures

Testing

docker-compose build test && docker-compose run test

Adds secrets to SSM parameter store

Prior to deploying changes you will need to add secret keys to the SSM Parameter Store; This can be done via the UI or using the following commands (if you have the relevant environment variables configured).

This creates the keys and values in the SSM parameter store:

aws ssm put-parameter --name meetupApiToken --region=eu-west-1 --type String --value ${MEETUP_API_TOKEN} --profile=muxer

This reads the keys and values from the SSM paramter store to ensure they have been created successfully:

aws ssm get-parameters --region=eu-west-1 --name meetupApiToken --profile=muxer

Manual Deployment

sls deploy --aws-profile=muxer --region-eu-west-1

Deploy

export AWS_ACCESS_KEY_ID=$(aws --profile muxer configure get aws_access_key_id)
export AWS_SECRET_ACCESS_KEY=$(aws --profile muxer configure get aws_secret_access_key)

docker-compose build deploy && docker-compose run deploy