Monday, January 2, 2023

Ansible playbook for AWS S3 bucket creation | How to create S3 bucket using Ansible in AWS Cloud

Ansible playbook for AWS S3 bucket creation

sudo vi create-s3.yml

 - name:  provisioning S3 Bucket using Ansible playbook
   hosts: localhost
   connection: local
   gather_facts: False
   tags: provisioning

     - name: create S3 bucket
         name: myansibles3bucket312
         state: present
         region: us-east-1
         versioning: yes
           name: myansiblebucket
           type: example
       register: s3_url

     - name: Display s3 url
       debug: var=s3_url

No comments:

Post a Comment

AWS, Azure Cloud and DevOps Coaching Online Classes | Feb 2023 Schedule

Are you in IT? Tired of your work? Are you not able to make any good progress in your career?  Are you not having a job? Looking for a break...