You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by GitBox <gi...@apache.org> on 2021/06/05 13:06:41 UTC

[GitHub] [libcloud] gguta opened a new issue #1590: ECS driver does not work.

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:
users@infra.apache.org



[GitHub] [libcloud] Asiwaju887 commented on issue #1590: ECS driver does not work.

Posted by GitBox <gi...@apache.org>.
Asiwaju887 commented on issue #1590:
URL: https://github.com/apache/libcloud/issues/1590#issuecomment-983378794


   Make sure the AWS_REGION you are using is the default region or you can then specify your won region also


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org