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

ec2-instances

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ec2-instances

get instance from ec2

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SYNOPSIS

List ec2 using aws-sdk-js instances, organized by tags.

Assumes you've tagged your EC2 instances like:

{ Tags:
   [ { Key: 'Purpose', Value: 'MyApp' },
     { Key: 'Environment', Value: 'production' },
     { Key: 'Name', Value: 'myapp-db-node1' } ],
}

EXAMPLE

See here for code that outputs:

{
  production:
   [ { ip: '10.10.173.1',
       name: 'myapp-prod-services01',
       environment: 'production' },
     { ip: '10.10.173.2',
       name: 'myapp-prod-thing',
       environment: 'production' },
     { ip: '10.10.173.3',
       name: 'myapp-prod-thing2',
       environment: 'production' } ]
  development:
   [ { ip: '10.10.171.1',
       name: 'myapp-dev-services01',
       environment: 'development' },
     { ip: '10.10.171.2',
       name: 'myapp-dev-hatchery',
       environment: 'development' },
     { ip: '10.10.171.3',
       name: 'myapp-dev-appnode01',
       environment: 'development' } ]
}

CONFIGURATION (ec2rc)

Will inspect ~/.ec2rc for config info. These are defaults.

Uses rc standards.

example config

For example in ~/.ec2rc you'd want to have something like this:

[aws]
sslEnabled=true
accessKeyId=access-key-here
secretAccessKey=secret-key-here
region=us-west-2

Keywords

FAQs

Package last updated on 06 Jul 2015

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