We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4de0d5 commit d41e868Copy full SHA for d41e868
aws_lambda/aws_lambda.py
@@ -639,7 +639,10 @@ def update_function(
639
if preserve_vpc:
640
kwargs['VpcConfig'] = existing_cfg.get('Configuration').get('VpcConfig')
641
if kwargs['VpcConfig'] is None:
642
- kwargs['VpcConfig'] = {}
+ kwargs['VpcConfig'] = {
643
+ 'SubnetIds': cfg.get('subnet_ids', []),
644
+ 'SecurityGroupIds': cfg.get('security_group_ids', []),
645
+ }
646
else:
647
del kwargs['VpcConfig']['VpcId']
648
0 commit comments