Using AWS Lambda, Step Functions, API Gateway, S3, SES, Amplify website hosting and deploy with Serverless Framework
This repository contains all the source code and resources needed to deploy Serverless Photobooth service described in this blog post.
Architecture is as follows:
- AWS cli
- Serverless Framework cli
- yarn & jq installed
- Create a free account at remove.bg and generate a API token.
- Set up and verified SES send email address
-
Clone the repository
-
Copy
.env.example
to.env
and fill in with the appropriate values. -
Run
make install && make deploy
This will create the backend stack and make the frontend deployment bundle ready.
-
Once step 2 above is finished, you can deploy the frontend code in
frontend/dist/frontend.zip
easily with Amplify web hosting. -
If you need to run the frontend in local, navigate to frontend directory and run
yarn run serve
- To remove the backend, run
make down
.
** Make sure the s3 directory created in the stack is empty before run this command.
More information regarding the project can be found in this blog post.