Refactored and tested the "get_instances" method.

This commit is contained in:
Shay Nehmad 2019-04-10 20:05:10 +03:00
parent 84960d13db
commit 86707897de
1 changed files with 2 additions and 0 deletions

View File

@ -69,6 +69,8 @@ class AwsService(object):
@staticmethod @staticmethod
def get_instances(): 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. 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. See https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html#iam-role for details.