Created
March 23, 2023 20:15
-
-
Save hendrixroa/1d1db29f9f9eb169d2be7e120ac112a7 to your computer and use it in GitHub Desktop.
Lambda layer definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "aws_lambda_layer_version" "main" { | |
layer_name = var.lambda_layer_name | |
description = var.description | |
s3_bucket = var.s3_bucket_id | |
s3_key = var.key_s3_bucket | |
source_code_hash = data.archive_file.main.output_base64sha256 | |
compatible_runtimes = [var.lambda_runtime] | |
depends_on = [ | |
aws_s3_bucket_object.main, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment