A simple utility to deploy a static website to [s3-bucket, lambda, ...]
npm install website-deployA simple utility to deploy a static website to [s3-bucket, lambda, ...]





You need a node v8 or higher to run this utility.
``console`
npm install --global website-deploy
`console`
npm install --save-dev website-deploy
This utility has following sub-commands:
This sub-command sync the provided source folder with AWS s3 bucket.
`console`
website-deploy s3 [options]
--delete
This will delete all the files from the AWS s3 bucket which are not present in provided
--debug
This will print extra debug statements for more visibility
--profile
Provide a AWS credential profile as a credentials.
--region
Provide a AWS region Name. Default is us-east-1.
This will deploy your application deployable file to AWS lambda.
Deploy/update a new function code.
`console`
website-deploy lambda update [options]
--debug
This will print extra debug statements for more visibility
--profile
Provide a AWS credential profile as a credentials.
--region
Provide a AWS region Name. Default is us-east-1.
Get the versions deployed to function.
`console`
website-deploy lambda version [options]
--count [count]
This will display the maximum version specified by count. Default is 10.
--debug
This will print extra debug statements for more visibility
--profile
Provide a AWS credential profile as a credentials.
--region
Provide a AWS region Name. Default is us-east-1.
Create the lambda deploable zip file
`console`
website-deploy lambda build [options]
--path
A object path to be invalidated. This can be provided multiple times to specify additional paths.
e.g.
`console`
website-deploy lambda build --path "/index.js" --path "/lambda.js" myapp.zip
--include-node-modules
Include the production npm packages. This will need package-lock.json
--debug
This will print extra debug statements for more visibility
This sub-command will invalidate the cloudfront cache
`console`
website-deploy invalidate-cache [options]
--path
A object path to be invalidated. This can be provided multiple times to specify additional paths.
e.g.
`console`
website-deploy invalidate-cache
--debug [true|false]
This will print extra debug statements for more visibility
--profile
Provide a AWS credential profile as a credentials.
--region
Provide a AWS region Name. Default is us-east-1`.
If you are experiencing a issue or wanted to add a new feature, please create a github issue [here][1].
:star: Star me on GitHub — it helps!
:heart: contribution: Here is [contributing guide][2] in deatil.
For impatient here are quick steps:
- Fork the repository
- Create Branch in you local repository
- while(youFinish) { Commit }
- Squash related commits.
- Write unit test cases for your work.
- Check the Build on your local.
- Raise a Pull Request (aka PR)
[1]: https://github.com/RishikeshDarandale/website-deploy/issues/new
[2]: ./CONTRIBUTING.md