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 in Ansible by ALok
192 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 by Vish

Related Questions In Ansible

0 votes
1 answer

devops , how to create user using ansible playbook

root doesn't need a password to switch ...READ MORE

answered Jul 16, 2018 in Ansible by Kalgi
• 2,620 points
124 views
0 votes
1 answer

Is it possible to run an Ansible Playbook in python script?

Hey @Cerci, Of course its possible. You ...READ MORE

answered Jan 17 in Ansible by Nicolas
2,322 views
0 votes
2 answers
0 votes
1 answer