Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@moneylion/s3-deploy
Advanced tools
A command line tool to deploy static sites to an S3 bucket.
A command line tool to deploy static sites to an S3 bucket.
At Moneylion, we have a lot of web properties. In order to untangle some of our deploy processes for frontend assets, we developed this script which allows us to quickly and painlessly configure a new deployment to S3.
One of the main uses for this script is to create temporary review-apps. When a new PR is created, this triggers a build in our CI pipeline, if all the tests pass and it builds successfully, then we deploy that PR to a temporary and shareable URL. Once the PR is closed, we tear it down.
npx @moneylion/s3-deploy
argument | description |
---|---|
domain | A fully qualified domain name. |
zone | The route53 HostedZoneId. |
distribution | The CloudFront DistributionId. |
channel | The slack channel name. |
deploy
This will create a new S3 bucket and point route53 at it. The last argument must be the directory to be uploaded. If an S3 bucket with this name already exists, then it will be cleared before the new files are uploaded.
requires:
e.g.
npx @moneylion/s3-deploy deploy --domain test.example.com --zone Z2XDC2IJ26IK32 ./dist
undeploy
This will delete an S3 bucket and the route53 record set.
requires:
optional
e.g.
npx @moneylion/s3-deploy undeploy --domain example.com --zone Z2XDC2IJ26IK32
promote
Creating a cloudfront distribution is outside the scope of this script. There are no future plans to support this feature.
requires an already existing bucket
requires an already existing cloudfront distribution
This will not create a new bucket, it will instead empty an already existing and then upload the new assets to that bucket. It will also invalidate the cloudfront cache.
requires:
e.g.
npx @moneylion/s3-deploy promote --domain test.example.com --distribution ABCDEFGH1I23J ./dist
Both deploy
and promote
can take in a channel
argument, this will be the slack channel you want it to post to.
It might be necessary to inject the environment variable directly into the script.
AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID AWS_DEFAULT_REGION=$AWS_DEFAULT_REGION npx @moneylion/s3-deploy
FAQs
A command line tool to deploy static sites to an S3 bucket.
The npm package @moneylion/s3-deploy receives a total of 0 weekly downloads. As such, @moneylion/s3-deploy popularity was classified as not popular.
We found that @moneylion/s3-deploy 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.