gguta opened a new issue #1590:
URL: https://github.com/apache/libcloud/issues/1590
## Summary
ECS driver does use wrong host name; if I fix this in the code the package
send a request to AWS causing internal server error.
## Detailed Information
apache-libcloud==3.3.1/Python 3.8.5/ubuntu20.04
Running the example provided in the documentation:
```
cls = get_driver(Provider.ECS)
conn = cls(access_id=os.getenv('AWS_ID'),
secret=os.getenv('AWS_KEY'),
region=os.getenv('AWS_REGION'))
for cluster in conn.list_clusters():
print(cluster.name)
```
This results an error message: `requests.exceptions.InvalidURL: Failed to
parse: https://ecs.%s.amazonaws.com/`
If I change the line 69 in libcloud/container/drivers/ecs.py to
`super(ElasticContainerDriver, self).__init__(access_id, secret, host=ECR_HOST
% (region))`, I get a response 500 from AWS.
Expected behavior: list the ECS cluster names.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]