Infrastructure for processing Serverless projects and creating one-click deployments.
Clicking button above will start deploy procedure of serverless-medium-text-to-speech project on your AWS Account via CloudFormation
Goal of the project is to create a mechanism for 1-click deployments, similar to Deploy on Heroku or Create Stack (CloudFormation) buttons, for Serverless Framework based projects.
In README.md
, add following button/image:
[![](https://kkcohgzei0.execute-api.us-east-1.amazonaws.com/dev/image?url=<YOUR_PROJECT_GITHUB_URL>)](https://kkcohgzei0.execute-api.us-east-1.amazonaws.com/dev/template?url=<YOUR_PROJECT_GITHUB_URL>)
All the magic like building project, uploading artifacts or creating CloudFormation template is handled automatically!
You can add following params to URL in order to change build procedure:
before
- command invoked beforeserverless package --stage dev
, by default it'snull
package
- by defaultserverless package --stage dev
after
- command invoked afterserverless package --stage dev
, by default it'snull
E.g.:
https://kkcohgzei0.execute-api.us-east-1.amazonaws.com/dev/image
?url=http://github.com/RafalWilinski/serverless-medium-text-to-speech
&before=npm%20run%20build
&package=serverless%20package%20--stage%20prod
&after=rm%20-fr%20node_modules
- Node
- AWS Account, AWS CLI & credentials Set
- Serverless Framework
- Docker
git clone https://github.com/RafalWilinski/deploy-with-serverless
cd deploy-with-serverless
npm install
npm run deploy
- Deploys whole infrastructure, builds Docker image which processes projects and pushes that image to ECRnpm run gen-passwd
- generates a random password for user which interacts with ECSnpm run deploy-img
- deploys image asset to public bucketnpm run deploy-static
- deploys 404 pagenpm run deploy-assets
- deploys both imgs and static pages