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 28916f0 commit b4de0d5Copy full SHA for b4de0d5
aws_lambda/aws_lambda.py
@@ -637,7 +637,11 @@ def update_function(
637
}
638
639
if preserve_vpc:
640
- kwargs['VpcConfig'] = existing_cfg.get('VpcConfig')
+ kwargs['VpcConfig'] = existing_cfg.get('Configuration').get('VpcConfig')
641
+ if kwargs['VpcConfig'] is None:
642
+ kwargs['VpcConfig'] = {}
643
+ else:
644
+ del kwargs['VpcConfig']['VpcId']
645
else:
646
kwargs['VpcConfig'] = {
647
'SubnetIds': cfg.get('subnet_ids', []),
0 commit comments