
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
grunt-cloudfront-root
Advanced tools
Grunt task for updating the default root object in Amazon AWS CloudFront.
Basically a port of smysnk/gulp-cloudfront, with much borrowed code.
Install this grunt plugin next to your project's grunt.js gruntfile with: npm install grunt-cloudfront-root --save-dev
Then add this line to your project's Gruntfile.js
gruntfile:
grunt.loadNpmTasks('grunt-cloudfront');
// Project configuration.
grunt.initConfig({
cloudfront: {
options: {
region:'us-east-1', // your AWS region
distributionId:"YOUR_DISTRIBUTION_ID", // DistributionID where files are stored
credentials:grunt.file.readJSON('path/to/aws/credentials.json'), // !!Load them from a gitignored file
},
stage: {
options: {
distributionId: '** DEV KEY **',
patternIndex: /^index\.[a-f0-9]{8}\.html(\.gz)*$/gi
},
cwd: '<%= yeoman.dist %>',
src: '*.html'
},
}
});
You should store your AWS credentials outside of source control. They will be loaded from the following environment variables if available:
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
Or you can store them in a git ignored credential file which looks like this:
{
"accessKeyId": "ACCESS_KEY",
"secretAccessKey": "SECRET_ACCESS_KEY"
}
Licensed under the MIT license.
FAQs
AWS CloudFront cache invalidating grunt task.
We found that grunt-cloudfront-root 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.