Some Links:
Ask question |
Website |
OCS Professional
This plugin will retrieve Amazon AWS EC2 instances details using the describe-instances command of the AWS CLI.
The following configuration has to be available :
- An AWS IAM user with AmazonEC2ReadOnlyAccess on the AWS infrastructure
- 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.
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',
);