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 1
1
repos :
2
2
- repo : git://github.com/antonbabenko/pre-commit-terraform
3
- rev : v1.48 .0
3
+ rev : v1.49 .0
4
4
hooks :
5
5
- id : terraform_fmt
6
6
- 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
20
20
21
21
| Name | Version |
22
22
| ------| ---------|
23
- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.12.26 |
23
+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 0.13 |
24
24
| <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 2.67 |
25
25
| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | >= 2 |
26
26
@@ -39,6 +39,7 @@ Note that this example may create resources which cost money. Run `terraform des
39
39
| <a name =" module_lambda_at_edge " ></a > [ lambda\_ at\_ edge] ( #module\_ lambda\_ at\_ edge ) | ../../ | |
40
40
| <a name =" module_lambda_function " ></a > [ lambda\_ function] ( #module\_ lambda\_ function ) | ../../ | |
41
41
| <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 ) | ../../ | |
42
43
| <a name =" module_lambda_layer_local " ></a > [ lambda\_ layer\_ local] ( #module\_ lambda\_ layer\_ local ) | ../../ | |
43
44
| <a name =" module_lambda_layer_s3 " ></a > [ lambda\_ layer\_ s3] ( #module\_ lambda\_ layer\_ s3 ) | ../../ | |
44
45
| <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" {
258
258
]
259
259
}
260
260
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
+
261
280
# ##########
262
281
# Disabled
263
282
# ##########
Original file line number Diff line number Diff line change 1
1
terraform {
2
- required_version = " >= 0.12.26 "
2
+ required_version = " >= 0.13 "
3
3
4
4
required_providers {
5
5
aws = " >= 2.67"
You can’t perform that action at this time.
0 commit comments