For deploying static websites with the serverless framework do the following:
- If not installed, then install serverless framework:
- Create the service. The Github-repo has to be public!:
- Go in the new directory
- Install the S3 sync plugin:
- Put your static files and folders into the static directory
- Deploy your Stack:
serverless deploy -v -r eu-central-1
npm install -g serverless
serverless create -u https://github.com/albertschwarzkopf/serverless-static-website -n serverless-static-website-template
serverless plugin install -n serverless-s3-sync