Skip to content

Commit

Permalink
completed implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
simsong committed Apr 21, 2024
1 parent d6fa408 commit e67f469
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions zappa/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,10 +1063,10 @@ def update(self, source_zip=None, no_upload=False, docker_image_uri=None):

# Set the cloudwatch retention days if specified in config.
# (default is to never delete cloudwatch logs, which can become expensive over time.)
cloudwatch_retention_days = self.stage_config.get("cloudwatch_retention_days",False)
if cloudwatch_retention_days:
log_group_name = '/aws/lambda/' + conf['project_name'] + name
self.zappa.set_cloudwatch_log_retention(log_group_name, int(cloudwatch_retention_days))
cloudwatch_retention_days = self.stage_config.get("cloudwatch_retention_days",None)
if cloudwatch_retention_days is not None:
log_group_name = '/aws/lambda/' + self.project_name + self.api_stage
self.zappa.set_cloudwatch_retention_days(log_group_name, int(cloudwatch_retention_days))

# Finally, delete the local copy our zip package
if not source_zip and not no_upload and not docker_image_uri:
Expand Down

0 comments on commit e67f469

Please sign in to comment.