GithubHelp home page GithubHelp logo

awsresources's Introduction

Plugin AWS Resources

Banner

Plugin AWS Resources

Some Links:
Ask question | Website | OCS Professional | Plugin Install

Description

This plugin will retrieve Amazon AWS EC2 instances details using the describe-instances and STS AssumeRole commands of the AWS CLI.

Prerequisites

The following configuration has to be available :

  1. An IAM user configured with AmazonEC2ReadOnlyAccess on the AWS infrastructure and STS AssumeRole authorizations
  2. IAM roles with trust policies for the above user on the accounts you wish to scan for AWS resources
  3. AWS CLI installed, see : https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html

Configuration

Please edit the file agent/Awsresources.pm with your target account id(s) and target regions:

Line 47 to 49 :

    # add there 1. targeted account and 2. arrays of targeted regions for this account
    my %targets = (
            '000000000002' =>    ['eu-central-1', 'us-east-2'],
            '000000000001' =>    ['eu-central-2', 'us-east-1'],
            ); 

If needed, a proxy can be specified line 57 and 58 :

        # $ENV{HTTP_PROXY} = "set_http_proxy_here_if_necessary";
        # $ENV{HTTPS_PROXY} = "set_https_proxy_here_if_necessary";

awsresources's People

Contributors

lea9250 avatar gillesdubois avatar

Watchers

FX GUIDET avatar  avatar Damien Belliard avatar  avatar Stéphane avatar

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.