Refactored and tested the "get_instances" method.
This commit is contained in:
parent
84960d13db
commit
86707897de
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue