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 <module>\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')\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'). This is what made me think it isn't intended for an ECS instance On Tuesday, September 18, 2018 at 4:09:42 PM UTC+1, Allen Sanabria wrote: > > Have you tried passing the *s3_url*: <endpoint address goes here.> > > On Tue, Sep 18, 2018 at 9:51 AM, Martyn Kempster <mkemps...@gmail.com > <javascript:>> wrote: > >> 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? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ansible Project" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to ansible-proje...@googlegroups.com <javascript:>. >> To post to this group, send email to ansible...@googlegroups.com >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/51eee42b-c82e-4a6d-9ef2-5545264a3d34%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/51eee42b-c82e-4a6d-9ef2-5545264a3d34%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8da5ab38-1a09-4f44-96c0-a818b86630ee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.