Skip to content
NodeJS module to for talking to Amazon EC2.
JavaScript Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
test
wsdl
.gitignore
.npmignore
ChangeLog
LICENSE
README.md
awssum-amazon-ec2.js
config.js
package.json

README.md

NOTE: AwsSum is now deprecated. Please use aws-sdk instead.

awssum-amazon-ec2

This is an AwsSum plugin!

You'll need to add awssum-amazon-ec2 to your package.json dependencies. Both awssum and awssum-amazon are pulled in as peer dependencies.

dependencies : {
    "awssum-amazon-ec2" : "1.x",
},

Example

Describe all your instances:

var fmt = require('fmt');
var amazonEc2 = require('awssum-amazon-ec2');

var ec2 = new amazonEc2.Ec2({
    'accessKeyId'     : process.env.ACCESS_KEY_ID,
    'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
    'region'          : amazonEc2.US_EAST_1,
});

ec2.DescribeInstances(function(err, data) {
    fmt.dump(err, 'err');
    fmt.dump(data, 'data');
});

Operations

AllocateAddress

Docs: AllocateAddress on AWS

AssignPrivateIpAddresses

Docs: AssignPrivateIpAddresses on AWS

AssociateAddress

Docs: AssociateAddress on AWS

AssociateDhcpOptions

Docs: AssociateDhcpOptions on AWS

AssociateRouteTable

Docs: AssociateRouteTable on AWS

AttachInternetGateway

Docs: AttachInternetGateway on AWS

AttachNetworkInterface

Docs: AttachNetworkInterface on AWS

AttachVolume

Docs: AttachVolume on AWS

AttachVpnGateway

Docs: AttachVpnGateway on AWS

AuthorizeSecurityGroupEgress

Docs: AuthorizeSecurityGroupEgress on AWS

AuthorizeSecurityGroupIngress

Docs: AuthorizeSecurityGroupIngress on AWS

BundleInstance

Docs: BundleInstance on AWS

CancelBundleTask

Docs: CancelBundleTask on AWS

CancelConversionTask

Docs: CancelConversionTask on AWS

CancelExportTask

Docs: CancelExportTask on AWS

CancelReservedInstancesListing

Docs: CancelReservedInstancesListing on AWS

CancelSpotInstanceRequests

Docs: CancelSpotInstanceRequests on AWS

ConfirmProductInstance

Docs: ConfirmProductInstance on AWS

CreateCustomerGateway

Docs: CreateCustomerGateway on AWS

CreateDhcpOptions

Docs: CreateDhcpOptions on AWS

CreateImage

Docs: CreateImage on AWS

CreateInstanceExportTask

Docs: CreateInstanceExportTask on AWS

CreateInternetGateway

Docs: CreateInternetGateway on AWS

CreateKeyPair

Docs: CreateKeyPair on AWS

CreateNetworkAcl

Docs: CreateNetworkAcl on AWS

CreateNetworkAclEntry

Docs: CreateNetworkAclEntry on AWS

CreateNetworkInterface

Docs: CreateNetworkInterface on AWS

CreateReservedInstancesListing

Docs: CreateReservedInstancesListing on AWS

CreatePlacementGroup

Docs: CreatePlacementGroup on AWS

CreateRoute

Docs: CreateRoute on AWS

CreateRouteTable

Docs: CreateRouteTable on AWS

CreateSecurityGroup

Docs: CreateSecurityGroup on AWS

CreateSnapshot

Docs: CreateSnapshot on AWS

CreateSpotDatafeedSubscription

Docs: CreateSpotDatafeedSubscription on AWS

CreateSubnet

Docs: CreateSubnet on AWS

CreateTags

Docs: CreateTags on AWS

CreateVolume

Docs: CreateVolume on AWS

CreateVpc

Docs: CreateVpc on AWS

CreateVpnConnection

Docs: CreateVpnConnection on AWS

CreateVpnConnectionRoute

Docs: CreateVpnConnectionRoute on AWS

CreateVpnGateway

Docs: CreateVpnGateway on AWS

DeleteCustomerGateway

Docs: DeleteCustomerGateway on AWS

DeleteDhcpOptions

Docs: DeleteDhcpOptions on AWS

DeleteInternetGateway

Docs: DeleteInternetGateway on AWS

DeleteKeyPair

Docs: DeleteKeyPair on AWS

DeleteNetworkAcl

Docs: DeleteNetworkAcl on AWS

DeleteNetworkAclEntry

Docs: DeleteNetworkAclEntry on AWS

DeleteNetworkInterface

Docs: DeleteNetworkInterface on AWS

DeletePlacementGroup

Docs: DeletePlacementGroup on AWS

DeleteRoute

Docs: DeleteRoute on AWS

DeleteRouteTable

Docs: DeleteRouteTable on AWS

DeleteSecurityGroup

Docs: DeleteSecurityGroup on AWS

DeleteSnapshot

Docs: DeleteSnapshot on AWS

DeleteSpotDatafeedSubscription

Docs: DeleteSpotDatafeedSubscription on AWS

DeleteSubnet

Docs: DeleteSubnet on AWS

DeleteTags

Docs: DeleteTags on AWS

DeleteVolume

Docs: DeleteVolume on AWS

DeleteVpc

Docs: DeleteVpc on AWS

DeleteVpnConnection

Docs: DeleteVpnConnection on AWS

DeleteVpnConnectionRoute

Docs: DeleteVpnConnectionRoute on AWS

DeleteVpnGateway

Docs: DeleteVpnGateway on AWS

DeregisterImage

Docs: DeregisterImage on AWS

DescribeAddresses

Docs: DescribeAddresses on AWS

DescribeAvailabilityZones

Docs: DescribeAvailabilityZones on AWS

DescribeBundleTasks

Docs: DescribeBundleTasks on AWS

DescribeConversionTasks

Docs: DescribeConversionTasks on AWS

DescribeCustomerGateways

Docs: DescribeCustomerGateways on AWS

DescribeDhcpOptions

Docs: DescribeDhcpOptions on AWS

DescribeExportTasks

Docs: DescribeExportTasks on AWS

DescribeImageAttribute

Docs: DescribeImageAttribute on AWS

DescribeImages

Docs: DescribeImages on AWS

DescribeInstanceAttribute

Docs: DescribeInstanceAttribute on AWS

DescribeInstances

Docs: DescribeInstances on AWS

DescribeInstanceStatus

Docs: DescribeInstanceStatus on AWS

DescribeInternetGateways

Docs: DescribeInternetGateways on AWS

DescribeKeyPairs

Docs: DescribeKeyPairs on AWS

DescribeNetworkAcls

Docs: DescribeNetworkAcls on AWS

DescribeNetworkInterfaceAttribute

Docs: DescribeNetworkInterfaceAttribute on AWS

DescribeNetworkInterfaces

Docs: DescribeNetworkInterfaces on AWS

DescribePlacementGroups

Docs: DescribePlacementGroups on AWS

DescribeRegions

Docs: DescribeRegions on AWS

DescribeReservedInstances

Docs: DescribeReservedInstances on AWS

DescribeReservedInstancesListings

Docs: DescribeReservedInstancesListings on AWS

DescribeReservedInstancesOfferings

Docs: DescribeReservedInstancesOfferings on AWS

DescribeRouteTables

Docs: DescribeRouteTables on AWS

DescribeSecurityGroups

Docs: DescribeSecurityGroups on AWS

DescribeSnapshotAttribute

Docs: DescribeSnapshotAttribute on AWS

DescribeSnapshots

Docs: DescribeSnapshots on AWS

DescribeSpotDatafeedSubscription

Docs: DescribeSpotDatafeedSubscription on AWS

DescribeSpotInstanceRequests

Docs: DescribeSpotInstanceRequests on AWS

DescribeSpotPriceHistory

Docs: DescribeSpotPriceHistory on AWS

DescribeSubnets

Docs: DescribeSubnets on AWS

DescribeTags

Docs: DescribeTags on AWS

DescribeVolumes

Docs: DescribeVolumes on AWS

DescribeVolumeAttribute

Docs: DescribeVolumeAttribute on AWS

DescribeVolumeStatus

Docs: DescribeVolumeStatus on AWS

DescribeVpcs

Docs: DescribeVpcs on AWS

DescribeVpnConnections

Docs: DescribeVpnConnections on AWS

DescribeVpnGateways

Docs: DescribeVpnGateways on AWS

DetachInternetGateway

Docs: DetachInternetGateway on AWS

DetachNetworkInterface

Docs: DetachNetworkInterface on AWS

DetachVolume

Docs: DetachVolume on AWS

DetachVpnGateway

Docs: DetachVpnGateway on AWS

DisableVgwRoutePropagation

Docs: DisableVgwRoutePropagation on AWS

DisassociateAddress

Docs: DisassociateAddress on AWS

DisassociateRouteTable

Docs: DisassociateRouteTable on AWS

EnableVgwRoutePropagation

Docs: EnableVgwRoutePropagation on AWS

EnableVolumeIo

Docs: EnableVolumeIo on AWS

GetConsoleOutput

Docs: GetConsoleOutput on AWS

GetPasswordData

Docs: GetPasswordData on AWS

ImportInstance

Docs: ImportInstance on AWS

ImportKeyPair

Docs: ImportKeyPair on AWS

ImportVolume

Docs: ImportVolume on AWS

ModifyImageAttribute

Docs: ModifyImageAttribute on AWS

ModifyInstanceAttribute

Docs: ModifyInstanceAttribute on AWS

ModifyNetworkInterfaceAttribute

Docs: ModifyNetworkInterfaceAttribute on AWS

ModifySnapshotAttribute

Docs: ModifySnapshotAttribute on AWS

ModifyVolumeAttribute

Docs: ModifyVolumeAttribute on AWS

MonitorInstances

Docs: MonitorInstances on AWS

PurchaseReservedInstancesOffering

Docs: PurchaseReservedInstancesOffering on AWS

RebootInstances

Docs: RebootInstances on AWS

RegisterImage

Docs: RegisterImage on AWS

ReleaseAddress

Docs: ReleaseAddress on AWS

ReplaceNetworkAclAssociation

Docs: ReplaceNetworkAclAssociation on AWS

ReplaceNetworkAclEntry

Docs: ReplaceNetworkAclEntry on AWS

ReplaceRoute

Docs: ReplaceRoute on AWS

ReplaceRouteTableAssociation

Docs: ReplaceRouteTableAssociation on AWS

ReportInstanceStatus

Docs: ReportInstanceStatus on AWS

RequestSpotInstances

Docs: RequestSpotInstances on AWS

ResetImageAttribute

Docs: ResetImageAttribute on AWS

ResetInstanceAttribute

Docs: ResetInstanceAttribute on AWS

ResetNetworkInterfaceAttribute

Docs: ResetNetworkInterfaceAttribute on AWS

ResetSnapshotAttribute

Docs: ResetSnapshotAttribute on AWS

RevokeSecurityGroupEgress

Docs: RevokeSecurityGroupEgress on AWS

RevokeSecurityGroupIngress

Docs: RevokeSecurityGroupIngress on AWS

RunInstances

Docs: RunInstances on AWS

StartInstances

Docs: StartInstances on AWS

StopInstances

Docs: StopInstances on AWS

TerminateInstances

Docs: TerminateInstances on AWS

UnassignPrivateIpAddresses

Docs: UnassignPrivateIpAddresses on AWS

UnmonitorInstances

Docs: UnmonitorInstances on AWS

Author

Written by Andrew Chilton - Blog - Twitter.

License

(Ends)

Something went wrong with that request. Please try again.