Skip to content

Commit

Permalink
fix: Add source code hash to AWS Lambda function
Browse files Browse the repository at this point in the history
The commit adds the `source_code_hash` attribute to the `aws_lambda_function` resource in `main.tf`. This attribute is set to the output of `data.archive_file.status_checker_code.output_base64sha256`, ensuring that the Lambda function uses the correct source code.
  • Loading branch information
stefanfreitag committed Oct 23, 2023
1 parent 7ca9e0e commit 04d7f93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ resource "aws_lambda_function" "msk_health_lambda" {
runtime = "python3.11"
reserved_concurrent_executions = 1
memory_size = 128
source_code_hash = data.archive_file.status_checker_code.output_base64sha256
timeout = 60
tags = var.tags
tracing_config {
Expand Down

0 comments on commit 04d7f93

Please sign in to comment.