0Pricing
Ansible Academy · Lesson

The aws_ec2 Inventory Plugin

Pull EC2 hosts by tag automatically.

Meet aws_ec2

The amazon.aws.aws_ec2 plugin queries the EC2 API and turns your running instances into Ansible hosts automatically.

Install the Collection First

The plugin lives in the amazon.aws collection. Install it from Galaxy before you can enable or use it.

ansible-galaxy collection install amazon.aws

All lessons in this course

  1. Static Limits & the Inventory Plugin Model
  2. The aws_ec2 Inventory Plugin
  3. constructed: Group Hosts by Tags
  4. Caching & Multiple Inventory Sources
← Back to Ansible Academy