Using Ansible to Automate AWS [Tutorial]
· via Spacelift
Summary: A static inventory file dies the first time an autoscaling group scales, and dynamic inventory is what makes Ansible viable against AWS. Tag your instances well and the inventory writes itself. The amazon.aws collection covers provisioning glue too, and credentials belong in roles and profiles, never in playbooks.
Who should read it: teams running Ansible against EC2 fleets, and anyone whose inventory file has ever listed a terminated instance.