@@ -3,12 +3,13 @@ provider "aws" {
33}
44
55module "lambda-scheduled" {
6- source = " ../../"
7- description = " Example AWS Lambda using go with cloudwatch scheduled event trigger"
8- filename = " ${ path . module } /test_function.zip"
9- function_name = " tf-example-go-basic"
10- handler = " example-lambda-func"
11- runtime = " go1.x"
6+ source = " ../../"
7+ description = " Example AWS Lambda using go with cloudwatch scheduled event trigger"
8+ filename = " ${ path . module } /test_function.zip"
9+ function_name = " tf-example-go-basic"
10+ handler = " example-lambda-func"
11+ runtime = " go1.x"
12+ source_code_hash = filebase64sha256 (" ${ path . module } /test_function.zip" )
1213
1314 event = {
1415 type = " cloudwatch-event"
@@ -17,12 +18,13 @@ module "lambda-scheduled" {
1718}
1819
1920module "lambda-pattern" {
20- source = " ../../"
21- description = " Example AWS Lambda using go with cloudwatch event pattern trigger"
22- filename = " ${ path . module } /test_function.zip"
23- function_name = " tf-example-go-basic"
24- handler = " example-lambda-func"
25- runtime = " go1.x"
21+ source = " ../../"
22+ description = " Example AWS Lambda using go with cloudwatch event pattern trigger"
23+ filename = " ${ path . module } /test_function.zip"
24+ function_name = " tf-example-go-basic"
25+ handler = " example-lambda-func"
26+ runtime = " go1.x"
27+ source_code_hash = filebase64sha256 (" ${ path . module } /test_function.zip" )
2628
2729 event = {
2830 type = " cloudwatch-event"
0 commit comments