Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

aws-sdk

Package Overview
Dependencies
Maintainers
4
Versions
1965
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sdk

AWS SDK for JavaScript

  • 2.612.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.9M
increased by0.84%
Maintainers
4
Weekly downloads
 
Created

What is aws-sdk?

The aws-sdk npm package is the official AWS SDK for JavaScript, providing JavaScript objects for AWS services including Amazon S3, EC2, DynamoDB, and more. It allows developers to interact with AWS services programmatically, enabling them to build scalable solutions with AWS infrastructure.

What are aws-sdk's main functionalities?

Interacting with Amazon S3

This code sample demonstrates how to retrieve an object from an Amazon S3 bucket using the aws-sdk.

{"const AWS = require('aws-sdk');
const s3 = new AWS.S3();
const params = { Bucket: 'myBucket', Key: 'myKey' };
s3.getObject(params, function(err, data) {
  if (err) console.log(err, err.stack);
  else console.log(data);
});"}

Managing EC2 Instances

This code sample shows how to describe EC2 instances, providing information about instances running in your AWS account.

{"const AWS = require('aws-sdk');
const ec2 = new AWS.EC2();
const params = { InstanceIds: ['i-1234567890abcdef0'] };
ec2.describeInstances(params, function(err, data) {
  if (err) console.log(err, err.stack);
  else console.log(data);
});"}

Working with DynamoDB

This code sample illustrates how to retrieve an item from a DynamoDB table using the aws-sdk.

{"const AWS = require('aws-sdk');
const dynamoDB = new AWS.DynamoDB();
const params = {
  TableName: 'myTable',
  Key: {
    'myKey': { S: 'myKeyValue' }
  }
};
dynamoDB.getItem(params, function(err, data) {
  if (err) console.log(err, err.stack);
  else console.log(data);
});"}

Other packages similar to aws-sdk

Keywords

FAQs

Package last updated on 05 Feb 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc