Simple SPA build with Elm on a Serverless architecture to monitor AWS SES Suppression List
-
prefix functions, services and resources names to prevent collision on AWS
edit
serverless.yml
custom: prefix: ""
-
deploy stack on AWS:
serverless deploy -v
-
configure AWS SES Bounce Notifications to send notifications with original headers to the SNS Topic from step 2.
-
copy
src/webapp/config.template.js
tosrc/webapp/config.js
and fill with the stack outputs values from step 2. -
install SPA dependencies:
yarn install && elm package install
-
build SPA:
yarn build
-
deploy SPA to S3:
aws s3 sync dist s3://S3_BUCKET
-
sign up a Cognito user
aws cognito-idp sign-up \ --client-id COGNITO_APP_CLIENT_ID \ --username USERNAME \ --password PASSWORD
-
confirm Cognito user sign up
aws cognito-idp admin-confirm-sign-up \ --user-pool-id COGNITO_POOL_ID \ --username USERNAME