|
|
|
@ -151,7 +151,7 @@ def main():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module, boto3=True)
|
|
|
|
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module, boto3=True)
|
|
|
|
connection = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_kwargs)
|
|
|
|
connection = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_kwargs)
|
|
|
|
except botocore.exceptions.NoCredentialsError, e:
|
|
|
|
except botocore.exceptions.NoCredentialsError as e:
|
|
|
|
module.fail_json(msg="Can't authorize connection - "+str(e))
|
|
|
|
module.fail_json(msg="Can't authorize connection - "+str(e))
|
|
|
|
|
|
|
|
|
|
|
|
# call your function here
|
|
|
|
# call your function here
|
|
|
|
|