Ansible playbook to create an S3 bucket

0 votes
Can you give me an example on how to create an s3 bucket with an ansible task? Thank you, that'll be very helpful.
Aug 1, 2019 in Ansible by ALok
3,167 views

1 answer to this question.

0 votes

Hey @Alok, an ansible task like this would do your job:

---
- hosts: localhost
  become: true
  tasks:
  - name: Create an S3 bucket
    s3: aws_access_key=<Access Key> aws_secret_key=<Secret Key> bucket=bucket object=/development mode=create permission=public-read region=ap-south-1
answered Aug 1, 2019 by Vish

Related Questions In Ansible

0 votes
1 answer

How to create an S3 bucket using Ansible Playbook?

Hi@akhtar, Ansible has a module that can create ...READ MORE

answered Dec 4, 2020 in Ansible by MD
• 95,460 points
2,286 views
0 votes
1 answer

How to create an encrypted bucket in AWS using Ansible Playbook?

Hi@akhtar, Sometimes it is required to encrypt the ...READ MORE

answered Dec 4, 2020 in Ansible by MD
• 95,460 points
816 views
0 votes
1 answer

How to create a simple S3 bucket on Ceph Rados Gateway using Ansible Playbook?

Hi@MD, Ansible has one module that can create ...READ MORE

answered Dec 4, 2020 in Ansible by akhtar
• 38,260 points
1,326 views
0 votes
1 answer

How to remove an S3 bucket using Ansible playbook?

Hi@akhtar, You can create or remove an S3 ...READ MORE

answered Dec 4, 2020 in Ansible by MD
• 95,460 points
1,306 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP