forked from p34709852/monkey
Added region since amazon requires it
This commit is contained in:
parent
8e6549f481
commit
30972d926a
|
@ -2,6 +2,8 @@ import boto3
|
|||
import botocore
|
||||
from botocore.exceptions import ClientError
|
||||
|
||||
from common.cloud.aws_instance import AwsInstance
|
||||
|
||||
__author__ = 'itay.mizeretz'
|
||||
|
||||
|
||||
|
@ -56,8 +58,8 @@ class AwsService(object):
|
|||
See https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html#iam-role for details.
|
||||
:return:
|
||||
"""
|
||||
#
|
||||
local_ssm_client = boto3.client("ssm", region_name=AwsService.region)
|
||||
# local_ssm_client = boto3.client("ssm", region_name=AwsService.region)
|
||||
local_ssm_client = boto3.client("ssm", region_name=AwsInstance.get_region())
|
||||
try:
|
||||
response = local_ssm_client.describe_instance_information()
|
||||
|
||||
|
|
Loading…
Reference in New Issue