Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
aws-deploy-script-fe
Advanced tools
AWS script for deploying your frontend applications.
The most common configuration used for our projects is using an S3 Bucket to contain our static files. Optionally you can have a CloudFront playing as a CDN.
The aim of this script is to read all your files and sync directly to the bucket without having to install AWS CLI or any kind of credentials configuration.
This script is cross project which means you only need to have a build/
folder to sync.
ROOT
build/
index.html
...
aws.js
...
aws.js
file should be at the root of your project, it will contain credentials and will export them as an object like this:module.exports = {
development: {
accessKeyId: "XXXXXXXXXXXXXXXXXXXX",
secretAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
region: "us-east-1",
bucket: "<Name of the bucket>",
distributionId: "XXXXXXXXXXXXXX",
options: { // Optional
preserveFiles: ["foo.txt", "bar.js"]
}
},
stage: {
accessKeyId: "XXXXXXXXXXXXXXXXXXXX",
secretAccessKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
region: "us-east-1",
bucket: "<Name of the bucket>",
distributionId: "XXXXXXXXXXXXXX",
options: { // Optional
preserveFiles: ["static/baz.js"]
}
}
};
The build/
folder will contain the file you want to sync
The distributionId
is optional, in case you've got it. The script will create an invalidation for all your files.
preserveFiles
. It allows to specify an array of S3 file paths that won't be removed when the script cleans the bucket before uploading the new build. It's useful if you want to upload files manually to the S3 bucket.
environment
or e
. It specifies the environment in which you are going to deploy your app. Also the key of your aws.js
file that has the corresponding credentials
path
or p
. The path of you generated static build files.
outputPath
or o
. The S3 path to upload your files (e.g. in case you don't want to upload all files in the root of the bucket)
You can install this package globally and run aws-deploy
npm install -g aws-deploy-script-fe
The command line to execute can be:
aws-deploy --env <enviroment-name> --path <build-path>
or
aws-deploy -e <enviroment-name> -p <build-path>
aws.js
.development
as default.build
.The dependency you need to install is aws-sdk
To run this script you must add these action policies to the user configured in the aws.js
file
"Action": [
"s3:GetObject",
"s3:GetObjectAcl",
"s3:ListMultipartUploadParts",
"s3:PutObject",
"s3:PutObjectAcl",
"s3:DeleteObject",
"cloudfront:CreateInvalidation"
]
This project is maintained by Damián Finkelstein, Pablo Ferro, Francisco Iglesias and Lucas Zibell and it was written by Wolox.
FAQs
AWS script for deploying your frontend applications.
The npm package aws-deploy-script-fe receives a total of 11 weekly downloads. As such, aws-deploy-script-fe popularity was classified as not popular.
We found that aws-deploy-script-fe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 23 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.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.