- Install docker and start the service
- Install and configure AWS SAM CLI
- To test the function locally:
sam build --use-container
sam local invoke test4stefanos --profile ferryhopper --region eu-west-2 --event events/event.json
The region parameter may not be needed, depending on the aws cli configuration
- Deploy with
sam deploy --guided
for the first time, and justsam deploy
every subsequent time
- The S3 bucket, lambda function and any lambda layers should be in the same region