Skip to content
This repository was archived by the owner on Mar 15, 2026. It is now read-only.

Commit 54566f5

Browse files
authored
added cli option for preserve-vpc to deploy-s3
1 parent d211b8b commit 54566f5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

scripts/lambda

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,20 @@ def upload(requirements, local_package, config_file, profile):
192192
multiple=True,
193193
help='Install local package as well.',
194194
)
195-
def deploy_s3(requirements, local_package, config_file, profile):
195+
@click.option(
196+
'--preserve-vpc',
197+
default=False,
198+
is_flag=True,
199+
help='Preserve VPC configuration on existing functions',
200+
)
201+
def deploy_s3(requirements, local_package, config_file, profile, preserve_vpc):
196202
aws_lambda.deploy_s3(
197203
CURRENT_DIR,
198204
requirements=requirements,
199205
local_package=local_package,
200206
config_file=config_file,
201207
profile_name=profile,
208+
preserve_vpc=preserve_vpc,
202209
)
203210

204211

0 commit comments

Comments
 (0)