diff --git a/lib/ansible/plugins/inventory/aws_ec2.py b/lib/ansible/plugins/inventory/aws_ec2.py index bb85fc960cf..1abaddc2e92 100644 --- a/lib/ansible/plugins/inventory/aws_ec2.py +++ b/lib/ansible/plugins/inventory/aws_ec2.py @@ -92,7 +92,7 @@ keyed_groups: - key: 'security_groups|json_query("[].group_id")' prefix: 'security_groups' # create a group for each value of the Application tag - - key: tag.Application + - key: tags.Application separator: '' # create a group per region e.g. aws_region_us_east_2 - key: placement.region