# "msg": "Local object for PUT does not exist"

**URL:** <https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694>\
**Category:** Ansible Project\
**Created:** [April 15, 2020, 9:50pm UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694 "2020-04-15T21:50:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serin\_Abraham](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Serin\_Abraham](https://forum.ansible.com/u/Serin_Abraham)\
**Post date:** [April 15, 2020, 9:50pm UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694/1 "2020-04-15T21:50:59Z")

</div>

Hi,

I just started using ansible for sometime now. Not sure what I’m doing wrong.

I already created a s3 bucket successfully and then trying to upload a file(awscliv2.zip) to s3 bucket but it fails with below error

**"“msg”: “Local object for PUT does not exist”**

playbook looks like below:

---

<div class="post-metadata">

**Author:** ![David\_Foley](https://avatars.discourse-cdn.com/v4/letter/d/9e8a1a/32.png) [@David\_Foley](https://forum.ansible.com/u/David_Foley)\
**Post date:** [April 16, 2020, 12:03am UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694/2 "2020-04-16T00:03:56Z")

</div>

Remote\_user I would do connection: local, also what's the folder permission on that playbook folder?

---

<div class="post-metadata">

**Author:** ![Serin\_Abraham](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Serin\_Abraham](https://forum.ansible.com/u/Serin_Abraham)\
**Post date:** [April 16, 2020, 3:22am UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694/3 "2020-04-16T03:22:40Z")

</div>

permission: public-read

---

<div class="post-metadata">

**Author:** ![Serin\_Abraham](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Serin\_Abraham](https://forum.ansible.com/u/Serin_Abraham)\
**Post date:** [April 16, 2020, 3:33am UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694/4 "2020-04-16T03:33:06Z")

</div>

root@master:~/playbook# cat create\_s3.yml

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [April 16, 2020, 4:32am UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694/5 "2020-04-16T04:32:04Z")

</div>

According to the docs aws modules should be run against localhost:

[https://docs.ansible.com/ansible/latest/scenario\_guides/guide\_aws.html](https://docs.ansible.com/ansible/latest/scenario_guides/guide_aws.html)

Please try that.

Also running ansible as root is both unnecessary and unsafe. So once you got things to work at all, take it a step further and fix that as well.

Dick

---

<div class="post-metadata">

**Author:** ![Serin\_Abraham](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Serin\_Abraham](https://forum.ansible.com/u/Serin_Abraham)\
**Post date:** [April 16, 2020, 6:53am UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694/6 "2020-04-16T06:53:08Z")

</div>

thank you Dick it worked.

I’m using root since its just for practise. anyway I will be mindful of that.

but the thing is I was able to install a ec2 and create a s3 bucket without localhost. anyway will need to dig-in deeper.

thanks again and appreciate it and thanks David for your help as-well. Cheers

---

<div class="post-metadata">

**Author:** ![Serin\_Abraham](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@Serin\_Abraham](https://forum.ansible.com/u/Serin_Abraham)\
**Post date:** [April 16, 2020, 7:20am UTC](https://forum.ansible.com/t/msg-local-object-for-put-does-not-exist/32694/7 "2020-04-16T07:20:29Z")

</div>

anyway i figured the actual problem. it was just the “src”(/root/playbook/serin.txt) file was not present in the targeted “hosts”(ubuntu).

simple issue but i guess this is how we learn 🙂
