From 86707897deb4b107a40e1c31b33c27073fba331f Mon Sep 17 00:00:00 2001 From: Shay Nehmad Date: Wed, 10 Apr 2019 20:05:10 +0300 Subject: [PATCH] Refactored and tested the "get_instances" method. --- monkey/common/cloud/aws_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/monkey/common/cloud/aws_service.py b/monkey/common/cloud/aws_service.py index 522056385..22b9aba7d 100644 --- a/monkey/common/cloud/aws_service.py +++ b/monkey/common/cloud/aws_service.py @@ -69,6 +69,8 @@ class AwsService(object): @staticmethod def get_instances(): """ + Get the information for all instances with the relevant roles. + This function will assume that it's running on an EC2 instance with the correct IAM role. See https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html#iam-role for details.