|
|
|
@ -25,7 +25,7 @@ notes:
|
|
|
|
|
for the ecs service, ecs.amazonaws.com)
|
|
|
|
|
dependecies:
|
|
|
|
|
- An IAM role must have been created
|
|
|
|
|
version_added: "0.9"
|
|
|
|
|
version_added: "2.0"
|
|
|
|
|
options:
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
@ -92,7 +92,7 @@ class EcsServiceManager:
|
|
|
|
|
module.fail_json(msg="Region must be specified as a parameter, in EC2_REGION or AWS_REGION environment variables or in boto configuration file")
|
|
|
|
|
self.ecs = boto3_conn(module, conn_type='client', resource='ecs', region=region, endpoint=ec2_url, **aws_connect_kwargs)
|
|
|
|
|
except boto.exception.NoAuthHandlerFound, e:
|
|
|
|
|
self.module.fail_json(msg=str(e))
|
|
|
|
|
self.module.fail_json(msg="Can't authorize connection - "+str(e))
|
|
|
|
|
|
|
|
|
|
# def list_clusters(self):
|
|
|
|
|
# return self.client.list_clusters()
|
|
|
|
@ -190,7 +190,7 @@ def main():
|
|
|
|
|
try:
|
|
|
|
|
existing = service_mgr.describe_service(module.params['cluster'], module.params['name'])
|
|
|
|
|
except Exception, e:
|
|
|
|
|
module.fail_json(msg=str(e))
|
|
|
|
|
module.fail_json(msg="Exception describing service '"+module.params['name']+"' in cluster '"+module.params['cluster']+"': "+str(e))
|
|
|
|
|
|
|
|
|
|
results = dict(changed=False )
|
|
|
|
|
if module.params['state'] == 'present':
|
|
|
|
|