Skip to content

Commit 85e212a

Browse files
fix(Lambda): add 'package_type' to lambda fn resource to allow image_uri src
1 parent 745348e commit 85e212a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

AWS_Lambda/main.Lambda_Function.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ resource "aws_lambda_function" "this" {
2222
filename = var.deployment_package_src.local_file_abs_path
2323
source_code_hash = var.deployment_package_src.local_file_abs_path != null ? filebase64sha256(var.deployment_package_src.local_file_abs_path) : null
2424
image_uri = var.deployment_package_src.image_uri
25+
package_type = var.deployment_package_src.image_uri != null ? "Image" : "Zip"
2526
s3_bucket = local.s3_bucket_src.bucket_name
2627
s3_key = local.s3_bucket_src.object_key
2728
s3_object_version = local.s3_bucket_src.object_version

0 commit comments

Comments
 (0)