plugin: amazon.aws.aws_ec2
access_key: '{{ aws_access_key }}'
secret_key: '{{ aws_secret_key }}'
{% if security_token | default(false) %}
session_token: '{{ security_token }}'
{% endif %}
regions:
- '{{ aws_region }}'
keyed_groups:
- prefix: tag
  key: tags
hostnames:
# can also be specified using
# - tag:Tag1,Tag2
# or
# - tag:Tag1
# - tag:Tag2
# or
- tag:Tag1=Test1,Tag2=Test2
compose:
  ansible_host: private_ip_address
