
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
aws-webdeploy
Advanced tools
Tiny utility to allow configuring a web application deployment from your package.json and leverage AWS-CDK.
Add the webdeploy section to your package.json file. (see below for more options)
"webdeploy": {
"distPath": "./dist",
"resourcePrefix": "test-web-stack"
}
Then just do this:
npx aws-webdeploy
TLDR; Install this along with the AWS CDK CLI (installed globally) and you can yarn deploy your static website out of your dist directory.
https://github.com/dsandor/aws-webdeploy-example
webdeploy settingsIn its simplest form you only need to add the following section to your package.json file. Here you are specifying the location of your static website files ./dist/ in this case. You are also specifying a prefix to use for your AWS Resources in the CloudFormation stack. This should be a unique prefix to avoid collision with your S3 bucket name. Pick something like www-mywebsite-com which is unique and descriptive.
"webdeploy": {
"distPath": "./dist",
"resourcePrefix": "test-web-stack"
}
Add the following to your package.json file:
"scripts": {
"deploy": "cdk deploy --app node_modules/aws-webdeploy/deploy.js"
},
yarn deploy
-or-
npm run deploy
This kicks off the cdk deploy command and uses a small cdk app that will use the parameters you configured in your package.json file.
package.json file settings| property | description |
|---|---|
| websiteDistPath | The HTML files to be deployed. e.g. ./dist |
| deploymentVersion | A version number for your deployment. |
| resourcePrefix | Used to group resources with a prefix. The S3 bucket is prefixed with this value. |
| indexDocument | index document for your website. default: index.html |
| certificateArn | the ARN for the SSL certificate for your website. (optional) |
| domainNames | an array of strings representing your website domain name (must match the certificate) e.g. ['mydomain.com', 'www.mydomain.com'] |
Please note that if you wish to use your own domain names and not just the Cloud Front Distribution URL you will also need a certificate. It is very simple to create a certificate in AWS console and it is free (assuming you are supporting modern browsers only). Once you have the ARN for your certificate use the certificateArn property. You will also need to provide the domain names to the domainNames property. The domain names MUST MATCH the domain names you put on your certificate.
deploymentVersion value)FAQs
Commandline tool used to deploy a web application.
The npm package aws-webdeploy receives a total of 1 weekly downloads. As such, aws-webdeploy popularity was classified as not popular.
We found that aws-webdeploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.