# Need a help to create S3 bucket using Ansible

**URL:** <https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [August 23, 2019, 12:27am UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106 "2019-08-23T00:27:42Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [August 25, 2019, 10:22pm UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/21 "2019-08-25T22:22:16Z")

</div>

Get the AWS CLI working first. Can’t help much there - perhaps it is a path issue?

Regards, K.

---

<div class="post-metadata">

**Author:** ![Amit\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Post date:** [August 25, 2019, 10:30pm UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/22 "2019-08-25T22:30:39Z")

</div>

Yes I am trying that but I am on python 2.7 and facing issue with aws CLI. Even after installation, I am still unable to see that path. Trying for that. Else I need to get another EC2 and perform installation from scratch and see what happens.

Thanks for your help Karl.

Appreciate it

Regards  
Amit

---

<div class="post-metadata">

**Author:** ![Karl\_Auer](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@Karl\_Auer](https://forum.ansible.com/u/Karl_Auer)\
**Post date:** [August 26, 2019, 12:23am UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/23 "2019-08-26T00:23:45Z")

</div>

This is now a basic user problem “why can’t this program be found”. This is not a problem that we can solve for you.

But once you have the AWS CLI working, you will be in a much better position to figure out why Ansible is not doing what you expect.

Regards, K.

---

<div class="post-metadata">

**Author:** ![RAVITZ](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@RAVITZ](https://forum.ansible.com/u/RAVITZ)\
**Post date:** [August 27, 2019, 6:38am UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/24 "2019-08-27T06:38:17Z")

</div>

Hi Amit,

can you please try by making become:true in playbook.  
Just for checking.

---

<div class="post-metadata">

**Author:** ![RAVITZ](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@RAVITZ](https://forum.ansible.com/u/RAVITZ)\
**Post date:** [August 27, 2019, 6:42am UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/25 "2019-08-27T06:42:34Z")

</div>

Hi Amit,

Also please make sure your botocore is able to read ~/.aws/configure/.

Ideally when you try dynamic inventory, you should be running your playbook using below.  
Aws\_profile={profile in config} ansible-playbook {playbook namr} -i {input variable file}

---

<div class="post-metadata">

**Author:** ![Amit\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Post date:** [August 27, 2019, 12:33pm UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/26 "2019-08-27T12:33:27Z")

</div>

Hi All,

I am able to run AWS command line now.

I was will try to run the playbook now and keep you posted on this.

Regards  
Amit

---

<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:** [August 27, 2019, 8:06pm UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/27 "2019-08-27T20:06:51Z")

</div>

Hi

After this long iteration of support, it would be appreciated if you shared with us the cause of the issue. Also, for everyone else to learn from.

Thx!

---

<div class="post-metadata">

**Author:** ![Amit\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Post date:** [August 27, 2019, 8:18pm UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/28 "2019-08-27T20:18:51Z")

</div>

Sure once I complete it.  
I will share all the details

Thanks everyone

Regards  
Amit

---

<div class="post-metadata">

**Author:** ![Amit\_Kulkarni](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Amit\_Kulkarni](https://forum.ansible.com/u/Amit_Kulkarni)\
**Post date:** [September 2, 2019, 11:03pm UTC](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106/29 "2019-09-02T23:03:34Z")

</div>

Hello All,

First of all thanks all of you for your support.

Sorry for the delay in writing back on to the group but it was busy due to Dorian.

I was able to create the bucket successfully using Ansible.

I have done all the installations again (Ansible, AWS CLI and Boto)

I have tested the AWS CLI which was working fine and then tested bucket creation using Ansible.

Do remember that installation for boto is very important at correct location else that can also be the cause of problem.

Let me know if further details are required.

Regards  
Amit

[Previous page](https://forum.ansible.com/t/need-a-help-to-create-s3-bucket-using-ansible/31106.md?page=1)
