An implementation of an events state machine using AWS Step Functions and the Serverless framework.
black src tests fixtures && isort -rc src tests fixtures
docker-compose build test && docker-compose run test
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
sls deploy --aws-profile=muxer --region-eu-west-1
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