Get AMI information of autoscaling group, it will return an old_ami fact with the following information:
ami_id
: AMI IDsecurity_groups
: The security groups of the AMIvpc_subnet_id
: The VPC subnetvolumes
: The AMI volumesavailability_zones
: The AMI zonekeypair
: The Keypair usedinstance_type
: The instance type
From version 2.3 ec2_lc_facts
will be in the core so, the library can be deleted
asg_name
: Auto Scaling Group nameregion
: AWS region
- hosts: localhost
roles:
- get-ami-of-autoscaling-group
GPL