From 73133d77082bbf90f273e17f0d1d9849bf392fcb Mon Sep 17 00:00:00 2001 From: Brian Lamar Date: Thu, 4 Oct 2018 16:53:32 -0400 Subject: [PATCH] [aws] ALB/NLB support SubnetMappings in AWS create LB call (#42060) --- lib/ansible/module_utils/aws/elbv2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/module_utils/aws/elbv2.py b/lib/ansible/module_utils/aws/elbv2.py index 800267a0fe..f7e7ecaf5e 100644 --- a/lib/ansible/module_utils/aws/elbv2.py +++ b/lib/ansible/module_utils/aws/elbv2.py @@ -251,6 +251,8 @@ class ApplicationLoadBalancer(ElasticLoadBalancerV2): # Other parameters if self.subnets is not None: params['Subnets'] = self.subnets + if self.subnet_mappings is not None: + params['SubnetMappings'] = self.subnet_mappings if self.security_groups is not None: params['SecurityGroups'] = self.security_groups params['Scheme'] = self.scheme