Skip to content

Commit

Permalink
terraform plan says the hash value has changed if I try to use the ch…
Browse files Browse the repository at this point in the history
…ecksum_256 attribute from aws_s3_object, so reverting back to hard coded value
  • Loading branch information
mnasr-moj committed Dec 3, 2024
1 parent 1443208 commit d1f49e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/environments/apex/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ resource "aws_lambda_layer_version" "backup_lambda" {
license_info = "Apache-2.0"
s3_bucket = aws_s3_bucket.backup_lambda.id
s3_key = "nodejs.zip"
source_code_hash = data.aws_s3_object.nodejs_zip.checksum_sha256
source_code_hash = local.hash_value
# Since the nodejs.zip file has been added manually to the s3 bucket the source_code_hash would have to be computed and added manually as well anytime there's a change to nodejs.zip
# This command allows you to retrieve the hash - openssl dgst -sha256 -binary nodejs.zip | base64
compatible_runtimes = ["nodejs18.x"]
Expand Down

0 comments on commit d1f49e5

Please sign in to comment.