# s3\_ modules for DELL EMC ECS

**URL:** <https://forum.ansible.com/t/s3-modules-for-dell-emc-ecs/28598>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [September 18, 2018, 1:51pm UTC](https://forum.ansible.com/t/s3-modules-for-dell-emc-ecs/28598 "2018-09-18T13:51:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkempster22uu](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Post date:** [September 18, 2018, 1:51pm UTC](https://forum.ansible.com/t/s3-modules-for-dell-emc-ecs/28598/1 "2018-09-18T13:51:22Z")

</div>

Is it possible to use any of the s3\_ and ecs\_ modules for EMC ECS? ECS uses the standard s3 API and has the same parameters such as AWS Secret Keys and Access Keys.

I’ve tried using the s3\_bucket module but I get ‘Couldn’t connect to AWS: Invalid endpoint:’ when trying to point to my ECS instance.

Does anyone have any knowledge on using Ansible to manage EMC ECS?

---

<div class="post-metadata">

**Author:** ![Allen\_Sanabria1](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Allen\_Sanabria1](https://forum.ansible.com/u/Allen_Sanabria1)\
**Post date:** [September 18, 2018, 3:09pm UTC](https://forum.ansible.com/t/s3-modules-for-dell-emc-ecs/28598/2 "2018-09-18T15:09:27Z")

</div>

Have you tried passing the **s3\_url** :

---

<div class="post-metadata">

**Author:** ![mkempster22uu](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@mkempster22uu](https://forum.ansible.com/u/mkempster22uu)\
**Post date:** [September 19, 2018, 8:09am UTC](https://forum.ansible.com/t/s3-modules-for-dell-emc-ecs/28598/3 "2018-09-19T08:09:13Z")

</div>

I’ve tried various uses of s3\_url pointing to my ECS instance, it seems to be a bit temperamental. Sometimes I will get invalid endpoint and other times i get ‘NoneType’ object has no attribute ‘endswith’

fatal: [ECS\_SERVER]: FAILED! =\> {  
“changed”: false,  
“module\_stderr”: “Shared connection to ECS\_SERVER closed.\r\n”,  
“module\_stdout”: “Traceback (most recent call last):\r\n File "/tmp/ansible\_xCDvEy/ansible\_module\_s3\_bucket.py", line 558, in \r\n main()\r\n File "/tmp/ansible\_xCDvEy/ansible\_module\_s3\_bucket.py", line 544, in main\r\n s3\_client = get\_s3\_client(module, aws\_connect\_kwargs, location, ceph, s3\_url)\r\n File "/tmp/ansible\_xCDvEy/ansible\_module\_s3\_bucket.py", line 492, in get\_s3\_client\r\n elif is\_walrus(s3\_url):\r\n File "/tmp/ansible\_xCDvEy/ansible\_module\_s3\_bucket.py", line 469, in is\_walrus\r\n return not o.hostname.endswith(‘[amazonaws.com](http://amazonaws.com)’)\r\nAttributeError: ‘NoneType’ object has no attribute ‘endswith’\r\n”,  
“msg”: “MODULE FAILURE”,  
“rc”: 1  
}

I’m a bit confused on why it says "return not o.hostname.endswith(‘[amazonaws.com](http://amazonaws.com)’). This is what made me think it isn’t intended for an ECS instance
