Skip to content

Commit 19663a5

Browse files
authored
set package_type parameter (#18)
1 parent 8c0019a commit 19663a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ resource "aws_lambda_function" "lambda" {
7676
reserved_concurrent_executions = var.reserved_concurrent_executions
7777
role = local.role_arn
7878
runtime = var.runtime
79+
package_type = var.image_uri == null ? "Zip" : "Image"
7980
s3_bucket = var.image_uri == null ? local.deployment_bucket_id : null
8081
s3_key = var.image_uri == null ? aws_s3_bucket_object.lambda_deploy_object[0].key : null
8182
s3_object_version = var.image_uri == null ? aws_s3_bucket_object.lambda_deploy_object[0].version_id : null

0 commit comments

Comments
 (0)