Giter Site home page Giter Site logo

awsressources's Introduction

Plugin AWS Ressources

Banner

Plugin AWS Ressources

Some Links:
Ask question | Website | OCS Professional

Description

This plugin will retrieve Amazon AWS EC2 instances details using the describe-instances command of the AWS CLI.

Prerequisites

The following configuration has to be available :

  1. An AWS IAM user with AmazonEC2ReadOnlyAccess on the AWS infrastructure
  2. AWS CLI installed, see : https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

AWS CLI Configuration :

Configure an AWS CLI profile named 'ocs'.

>> aws configure --profile ocs
AWS Access Key ID [None]: ********************
AWS Secret Access Key [None]: *******************************
Default region name [None]: None
Default output format [None]: json

Enter your user's access key ID and secret access key provided at the user creation on the AWS management console.

Enter 'None' for the default region name. You will be able to add one or multiple regions inside agent/Awsressources.pm, see below for more details.

JSON output is needed for the plugin to work.

Configuration

If you chose a different profile name than 'ocs' during the previous step, please edit the file agent/Awsressources.pm with your profile name :

Line 46 :

my $profile = 'ocs';

To choose which regions you want to search for instances, edit these lines :

Line 49 to 52 :

my @regions = (
            'us-east-2',
            'us-east-1',
            );

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.