
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
simple-s3-deploy
Advanced tools
Simplest way to deploy static files to S3 bucket in aws.
Install with npm
npm install simple-s3-deploy
const s3Deploy = require("simple-s3-deploy")
// Specify required data
const deployOptions =
{
ID : "AKIAULL....",
SECRET : "HWr+7+NEYnPG.....",
BUCKET_NAME : "my-bucket",
DEPLOY_FOLDER_PATH : "./dist/",
CACHE :
{
ID : "XXXXXXXXXXXXXX",
QUANTITY : 1,
PATH : ["/*"],
}
}
// Deploy
s3Deploy.deploy(deployOptions);
Takes deployOptions
and deploys files to S3 bucket.
Keys | Sample | Description |
---|---|---|
ID | string | Required. Your AWS access key Id. |
SECRET | string | Required. Your AWS access key Secret. |
CROSS_ACCOUNT_ROLE | arn:aws:iam::99999999:role/dev | Optional. Your AWS role arn. |
BUILD_CMD | ng build | Optional. CMD build command to build project. |
BUCKET_NAME | my-bucket | Required. Your AWS S3 Bucket name where you eat to deploy code. |
DEPLOY_FOLDER_PATH | ./dist/app | Required. Local folder path where deployable files are build. |
IGNORE_FILES | [ "node_module", ".DS_Store" ] | Optional. Files that you dont want to upload. |
CACHE | { ID : "E17G7YNEXAMPLE", QUANTITY : 1, PATHS : ["/*"] } | Optional. Specify if you have distribution and you want to invalidate cache. |
ACL | string | Optional. Valid Values: private | public-read | public-read-write | authenticated-read | aws-exec-read | bucket-owner-read | bucket-owner-full-control |
Keys | Type | Sample | Description |
---|---|---|---|
ID | string | E17G7YNEXAMPLE | Required. Distribution Id where you want to create invalidation to clear cache. |
QUANTITY | number | 1 | Required. Number of file to delete. |
PATHS | Array | ["/*"] | Required. List of paths that you want to clear. (["/*"] to invalidate all files) |
FAQs
A simple package to deploy static files to your AWS S3 bucket.
The npm package simple-s3-deploy receives a total of 18 weekly downloads. As such, simple-s3-deploy popularity was classified as not popular.
We found that simple-s3-deploy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.