ec2_group - fix VPC precedence for security group targets (#45787)

Update the dictionary with the preferred values last to get the right order of VPC precedence

Fixes #45782
This commit is contained in:
Sloane Hertel
2018-09-18 15:33:19 -04:00
committed by Ryan Brown
parent 06e2e0e040
commit 8d2df9be52
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
---
bugfixes:
- ec2_group - There can be multiple security groups with the same name in
different VPCs. Prior to 2.6 if a target group name was provided, the group
matching the name and VPC had highest precedence. Restore this behavior by
updated the dictionary with the groups matching the VPC last.