File tree Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Expand file tree Collapse file tree 4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 11repos :
22 - repo : git://github.com/antonbabenko/pre-commit-terraform
3- rev : v1.48 .0
3+ rev : v1.49 .0
44 hooks :
55 - id : terraform_fmt
66 - id : terraform_validate
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ Note that this example may create resources which cost money. Run `terraform des
2020
2121| Name | Version |
2222| ------| ---------|
23- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.12.26 |
23+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.13 |
2424| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 2.67 |
2525| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | >= 2 |
2626
@@ -39,6 +39,7 @@ Note that this example may create resources which cost money. Run `terraform des
3939| <a name =" module_lambda_at_edge " ></a > [ lambda\_ at\_ edge] ( #module\_ lambda\_ at\_ edge ) | ../../ | |
4040| <a name =" module_lambda_function " ></a > [ lambda\_ function] ( #module\_ lambda\_ function ) | ../../ | |
4141| <a name =" module_lambda_function_existing_package_local " ></a > [ lambda\_ function\_ existing\_ package\_ local] ( #module\_ lambda\_ function\_ existing\_ package\_ local ) | ../../ | |
42+ | <a name =" module_lambda_function_for_each " ></a > [ lambda\_ function\_ for\_ each] ( #module\_ lambda\_ function\_ for\_ each ) | ../../ | |
4243| <a name =" module_lambda_layer_local " ></a > [ lambda\_ layer\_ local] ( #module\_ lambda\_ layer\_ local ) | ../../ | |
4344| <a name =" module_lambda_layer_s3 " ></a > [ lambda\_ layer\_ s3] ( #module\_ lambda\_ layer\_ s3 ) | ../../ | |
4445| <a name =" module_lambda_with_mixed_trusted_entities " ></a > [ lambda\_ with\_ mixed\_ trusted\_ entities] ( #module\_ lambda\_ with\_ mixed\_ trusted\_ entities ) | ../../ | |
Original file line number Diff line number Diff line change @@ -258,6 +258,25 @@ module "lambda_with_mixed_trusted_entities" {
258258 ]
259259}
260260
261+ # #############################
262+ # Lambda Functions + for_each
263+ # #############################
264+
265+ module "lambda_function_for_each" {
266+ source = " ../../"
267+
268+ for_each = toset ([" dev" , " staging" , " prod" ])
269+
270+ function_name = " my-${ each . value } "
271+ description = " My awesome lambda function"
272+ handler = " index.lambda_handler"
273+ runtime = " python3.8"
274+ publish = true
275+
276+ create_package = false
277+ local_existing_package = " ${ path . module } /../fixtures/python3.8-zip/existing_package.zip"
278+ }
279+
261280# ##########
262281# Disabled
263282# ##########
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 0.12.26 "
2+ required_version = " >= 0.13 "
33
44 required_providers {
55 aws = " >= 2.67"
You can’t perform that action at this time.
0 commit comments