
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.
aws-signed-request
Advanced tools
Module to send signed requests to an AWS service.
Heavily inspired by aws samples.
npm install --save aws-signed-request
var elastic = require('aws-signed-request')({
endpoint: 'htps://your.elasticsearch.es.amazon.com',
region: 'eu-west-1',
service: 'es'
});
elastic.send({
method: 'GET',
path: '/domain/index/id'
}, function (err, data) {
console.log(data);
});
var gateway = require('aws-signed-request')({
endpoint: 'https://your.api.gateway.amazon.com',
region: 'eu-west-1',
service: 'execute-api'
});
gateway.send({
method: 'POST',
path: '/action'
}, function (err, data) {
console.log(data);
});
By default the module expects a JSON response. If you're expecting plain text you can call
elastic.send({
method: 'GET',
path: '/_cat/indices',
json: false
}, function (err, data) {
console.log(data); // as plain text
});
If json:true
and the response is not a valid JSON, the callback receives an error containing responseText
for debug purposes.
Clone the repo, write some test, make them pass and pull request your changes.
You can watch your tests by running
npm install -g watch
watch "npm test" . -d
FAQs
Helper to send signed request from a lambda
The npm package aws-signed-request receives a total of 1 weekly downloads. As such, aws-signed-request popularity was classified as not popular.
We found that aws-signed-request 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.