Skip to content

Commit bd25180

Browse files
committed
update deployment
1 parent f8da47f commit bd25180

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lambda-warmer/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ resource "aws_iam_role" "warmer_iam_role" {
3232
data "archive_file" "warmer_code" {
3333
type = "zip"
3434
source_dir = "${path.module}/lambda"
35-
output_path = "${path.module}/lambda/function.zip"
35+
output_path = "${path.module}/function.zip"
3636
}
3737

3838
resource "aws_lambda_function" "warmer_function" {
@@ -44,6 +44,7 @@ resource "aws_lambda_function" "warmer_function" {
4444
source_code_hash = data.archive_file.warmer_code.output_base64sha256
4545
role = aws_iam_role.warmer_iam_role.arn
4646
function_name = "${var.function_to_warm}-warmer"
47+
description = "Scheduled invocation to warm ${var.num_desired_warm_instances} instances of function ${var.function_to_warm}."
4748
memory_size = 256
4849
timeout = 15
4950
environment {

0 commit comments

Comments
 (0)