aws_ec2 inventory plugin
The inventory plugin from the amazon.aws collection that lists EC2 instances in an AWS account as Ansible hosts.
In more detail
Its configuration picks regions and filters, such as instances tagged Environment=production, and uses keyed groups to turn instance tags and placement into groups. It needs the collection installed and AWS credentials, so the course does not run it.
Related terms
- inventory plugin — A plugin that builds inventory from a source such as a cloud account, configured with a small YAML file rather than written as a program.
- AWS — Amazon Web Services, the largest public cloud provider, offering rented servers, storage, networking and many managed services.
- Amazon EC2 — Amazon Elastic Compute Cloud, the AWS service that rents out virtual servers called instances.
- keyed group — An inventory plugin setting that creates one group for each distinct value of a host attribute, named from a prefix and the value.
- resource tag — A key and value label, such as Role=web or Environment=production, attached to a cloud resource to describe it.
Taught in
- Dynamic Inventory — Ansible Configuration Management at Scale