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.
Jul 31, 2019 in Ansible by ALok
1,963 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 Jul 31, 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,220 points
367 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,220 points
79 views
0 votes
1 answer
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,220 points
121 views
0 votes
1 answer