How to configure Ansible to interact with AWS infrastructure — EC2, VPC, Security Group, etc. — python boto3, and collection amazon.aws and ec2_ami_info Search for AMI id demo. — How to configure Ansible for AWS? Ansible provides various modules to manage AWS infrastructure, which includes EC2, VPC, Security Groups, etc. I’ll show you step by step how to prepare your Ansible controller to interact with the AWS infrastructure.