Skip to content

albertschwarzkopf/serverless-static-website-with-contact-form

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

For deploying static websites with the serverless framework do the following:

  1. Set up your AWS credentials on your VM
  2. Verify your E-Mail in AWS SES. This will be the sender!
  3. If not installed, then install serverless framework:
  4. npm install -g serverless
  5. Create the service in a new folder:
  6. serverless create -u https://github.com/albertschwarzkopf/serverless-static-website-with-contact-form -n serverless-static-website-with-contact-form
  7. Go in the new directory.
  8. Install the S3 sync plugin:
  9. serverless plugin install -n serverless-s3-sync
  10. Install the Script Plugin
  11. npm install --save serverless-plugin-scripts
  12. Change the service name in serverless.yml if you want.
  13. Overwrite your static files and folders into the static directory.
  14. Deploy your Stack and put you Email-adress here. This will be used as Sender in SES:
  15. serverless deploy --email youremail@example.de -v --region eu-west-1

Hints:

  • Take a short name without uppercase characters for service, because it ist used by default for Bucket-Name and IAM-Role.
  • If you want to save the sent messages in DynamoDB when you can activate this feautre in serverless.yml

About

Repo for serverless static websites with contact form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published