plugin: aws_ec2
aws_profile: gdb-apollo-dev
regions:
  - us-east-1
strict_permissions: False
filters:
  instance-state-name: running
  tag:os_platform:
    - linux
#    - windows
keyed_groups:
  # add hosts to tag_Name_value groups for each aws_ec2 host's tags.Name variable
  - key: tags.Name
    prefix: tag_Name_
    separator: ""
  - key: key_name
    prefix: key_name_
    separator: ""
  - key: tags.os_platform
    prefix: tag_os_platform_
    separator: ""
  - key: tags.os_distribution
    prefix: tag_os_distribution_
    separator: ""
  - key: tags.splunk
    prefix: tag_splunk_
    separator: ""
  - key: tags.environment
    prefix: tag_env_
    separator: ""
  - key: tags.platform
    prefix: tag_platform_
  - key: tags.role
    prefix: tag_role_
    separator: ""
strict: False
hostnames:
  - private-ip-address
compose:
  ec2_id: instance_id
  ec2_account_id: owner_id
  ec2_vpc_id: vpc_id
  ec2_private_ip_address: private_ip_address
  ansible_host: private_ip_address
