Innovator Island Amplify Theme Park
Referenced from AWS re:Invent Workshop session
AWS | AWS Amplify Framework | AWS Serverless Application Model
- Install the latest Amplify CLI version
npm install -g @aws-amplify/cli
- Follow this guide to configure Amplify
- Configuration of VueJs app located in
frontend
dir. - Create a new Amplify host web app using the
amplify.yml
build settings.
- Install the latest SAM CLI following the installation guide
- Change directory to
cd bootsrap
- Prep your environment with the
./bootstrap.sh
script NOTE: This script is assuming an Ubuntu linux distribution - Setup the backend resources with the
./setup-backend.sh
script - Copy the API Endpoint provided in the last line of the output
Should be similar to
https://glkvjnngck.execute-api.us-east-2.amazonaws.com/Prod/InitState/
- Update the
frontend/src/config.js
fileinitStateAPI
value to match the new API URL
- Change directory to
cd bootsrap
- Add the new Lambda function with the
./messaging.sh
script - Note the three output variables from the script:
Cognito Pool: us-east-2:adebd190-8590-47e7-9c0b-15ff289e50d6
IOT Endpoint: a1c4z5dui0bt0v-ats.iot.us-east-2.amazonaws.com
AWS Region: us-east-2
- Update the
frontend/src/config.js
file setting theiot
values to match the results from the output
- Change directory to
cd ./backend/photos/1-chromakey/
- Add the new lambda function with the
./chromakey.sh
script - Note the upload bucket output from the script
- Test the upload
aws s3 cp ./green-screen-test.png s3://youruploadbucketname
- In the AWS console, navigate to the S3 service and select the
theme-park-backend-processingbucket
bucket - Download and view the
green-screen-test.png
object
- Change directory to
cd ./backend/photos/2-processing/
- Add the new lambda function with the
./processing.sh
script - Note the upload bucket output from the script
- Test the upload
aws s3 cp ./green-screen-test.png s3://youruploadbucketname
- In the AWS console, navigate to the S3 service and select the
theme-park-backend-finalbucket
bucket - Download and view the
green-screen-test.jpg
object
- Change directory to
cd ./backend/photos/3-postprocessing/
- Add the new lambda function with the
./postprocessing.sh
script - Note the photo upload URL output from the script
- Update the
frontend/src/config.js
file setting thephotoUploadURL
value to match the results from the output
- Change directory to
cd ./bootstrap/
- Run the local translation app with the
./translations.sh
script