Skip to content

Commit

Permalink
make lambda ignore layer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
socraticDevBlog committed Jun 15, 2024
1 parent 70d9230 commit a04fe41
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,12 @@ resource "aws_lambda_function" "apigw_lambda_ddb" {
BASE_URL = var.api_base_url
}
}
layers = [aws_lambda_layer_version.dependencies_layer.arn]
layers = [aws_lambda_layer_version.dependencies_layer.arn]
lifecycle {
ignore_changes = [
layers,
]
}
depends_on = [aws_cloudwatch_log_group.lambda_logs]
}

Expand Down

0 comments on commit a04fe41

Please sign in to comment.