I was assigned the Ansible provisioning Task and i am not able to perform it on aws lab

I have been given this task and what is the way i should do to excute it in aws

Ansible Realtime project

Task 1

Create three(3) EC2 instances on AWS using Ansible loops

  • 2 Instances with Ubuntu Distribution
  • 1 Instance with Centos Distribution

Hint: Use connection: local on Ansible Control node.

Task 2

Set up passwordless authentication between Ansible control node and newly created instances.

Task 3

Automate the shutdown of Ubuntu Instances only using Ansible Conditionals

Let’s try to keep this in one discussion: I am not able to create the users and policies in aws