I am trying to create an s3 bucket using ansible. The following is my playbook:
---
- hosts: localhost
gather_facts: no
connection: local
vars_files:
- aws-creds.yml
vars:
bucketname: shenllbucket01
tasks:
- name: To Create An S3 Bucket
s3:
aws_access_key: "{{ access_key }}"
aws_secret_key: "{{ secret_key }}"
bucket: "{{ bucketname }}"
mode: create