Skip to content

Commit

Permalink
fixup! fixup! Fix: Race between layer and Lambda update (#5927)
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirho-ucsc committed Jul 15, 2024
1 parent c3452e4 commit 0921f44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/azul/terraform.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,9 +708,9 @@ def tf_config(self, app_name):
for resource in resources['aws_lambda_function'].values():
assert 'layers' not in resource
resource['layers'] = ['${aws_lambda_layer_version.dependencies.arn}']
# Publishing the Lambda function as a new version prevents possible
# race conditions when there's a dependency between an update
# to the function's configuration and an update to its code
# Publishing the Lambda function as a new version prevents a race
# condition when there's a dependency between updates to the
# function's configuration and an update to its code
resource['publish'] = True
env = config.es_endpoint_env(
es_endpoint=(
Expand Down

0 comments on commit 0921f44

Please sign in to comment.