Some Links:
Ask question |
Website |
OCS Professional |
Plugin Install
This plugin will retrieve Amazon AWS EC2 instances details using the describe-instances and STS AssumeRole commands of the AWS CLI.
The following configuration has to be available :
- An IAM user configured with AmazonEC2ReadOnlyAccess on the AWS infrastructure and STS AssumeRole authorizations
- IAM roles with trust policies for the above user on the accounts you wish to scan for AWS resources
- AWS CLI installed, see : https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html
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";