aws_s3 - not sure if I understand how to use

As you are beginning with ansible, start with the simplest option,
which is just a single playbook file, and don't bother with roles yet.
Something like this should already work to create a bucket:

- hosts: localhost
  gather_facts: False

  tasks:
    - name: Create S3 Bucket
      aws_s3:
        bucket: my-bucket
        mode: create
        permission: private-read
        region: us-east-1

Provided your environment contains AWS_SECRET_ACCESS_KEY and
AWS_ACCESS_KEY_ID. Read
https://docs.ansible.com/ansible/latest/scenario_guides/guide_aws.html
on how that works.

Please note that 'private-read' isn't a valid option for the
permission, see
https://docs.ansible.com/ansible/latest/modules/aws_s3_module.html#parameter-permission
for the supported values.

Dick

Hi,

That was the weird thing. When I run it it gives me this error.

ERROR! aws_s3 is not a valid attribute for a Play.

This is the only reason why I started to try a different avenue…

Oh well…

Thanks
David