File tree Expand file tree Collapse file tree 8 files changed +24
-14
lines changed Expand file tree Collapse file tree 8 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/antonbabenko/pre-commit-terraform
3
- rev : v1.96.1
3
+ rev : v1.99.4
4
4
hooks :
5
5
- id : terraform_fmt
6
6
- id : terraform_docs
Original file line number Diff line number Diff line change @@ -133,14 +133,14 @@ module "step_function" {
133
133
134
134
| Name | Version |
135
135
| ------| ---------|
136
- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
137
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.61 |
136
+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.5.7 |
137
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 6.0 |
138
138
139
139
## Providers
140
140
141
141
| Name | Version |
142
142
| ------| ---------|
143
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.61 |
143
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 6.0 |
144
144
145
145
## Modules
146
146
@@ -204,6 +204,7 @@ No modules.
204
204
| <a name =" input_policy_path " ></a > [ policy\_ path] ( #input\_ policy\_ path ) | Path of IAM policies to use for Step Function | ` string ` | ` null ` | no |
205
205
| <a name =" input_policy_statements " ></a > [ policy\_ statements] ( #input\_ policy\_ statements ) | Map of dynamic policy statements to attach to IAM role | ` any ` | ` {} ` | no |
206
206
| <a name =" input_publish " ></a > [ publish] ( #input\_ publish ) | Determines whether to set a version of the state machine when it is created. | ` bool ` | ` false ` | no |
207
+ | <a name =" input_region " ></a > [ region] ( #input\_ region ) | Region where the resource(s) will be managed. Defaults to the region set in the provider configuration | ` string ` | ` null ` | no |
207
208
| <a name =" input_role_arn " ></a > [ role\_ arn] ( #input\_ role\_ arn ) | The Amazon Resource Name (ARN) of the IAM role to use for this Step Function | ` string ` | ` "" ` | no |
208
209
| <a name =" input_role_description " ></a > [ role\_ description] ( #input\_ role\_ description ) | Description of IAM role to use for Step Function | ` string ` | ` null ` | no |
209
210
| <a name =" input_role_force_detach_policies " ></a > [ role\_ force\_ detach\_ policies] ( #input\_ role\_ force\_ detach\_ policies ) | Specifies to force detaching any policies the IAM role has before destroying it. | ` bool ` | ` true ` | no |
Original file line number Diff line number Diff line change @@ -22,16 +22,16 @@ Note that this example may create resources which cost money. Run `terraform des
22
22
23
23
| Name | Version |
24
24
| ------| ---------|
25
- | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.0 |
26
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.61 |
25
+ | <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.5.7 |
26
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 6.0 |
27
27
| <a name =" requirement_null " ></a > [ null] ( #requirement\_ null ) | >= 2 |
28
28
| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | >= 2 |
29
29
30
30
## Providers
31
31
32
32
| Name | Version |
33
33
| ------| ---------|
34
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.61 |
34
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 6.0 |
35
35
| <a name =" provider_null " ></a > [ null] ( #provider\_ null ) | >= 2 |
36
36
| <a name =" provider_random " ></a > [ random] ( #provider\_ random ) | >= 2 |
37
37
@@ -41,7 +41,7 @@ Note that this example may create resources which cost money. Run `terraform des
41
41
| ------| --------| ---------|
42
42
| <a name =" module_disabled_step_function " ></a > [ disabled\_ step\_ function] ( #module\_ disabled\_ step\_ function ) | ../../ | n/a |
43
43
| <a name =" module_kms " ></a > [ kms] ( #module\_ kms ) | terraform-aws-modules/kms/aws | ~ > 1.0 |
44
- | <a name =" module_lambda_function " ></a > [ lambda\_ function] ( #module\_ lambda\_ function ) | terraform-aws-modules/lambda/aws | ~ > 2 .0 |
44
+ | <a name =" module_lambda_function " ></a > [ lambda\_ function] ( #module\_ lambda\_ function ) | terraform-aws-modules/lambda/aws | ~ > 8 .0 |
45
45
| <a name =" module_step_function " ></a > [ step\_ function] ( #module\_ step\_ function ) | ../../ | n/a |
46
46
| <a name =" module_step_function_with_existing_log_group " ></a > [ step\_ function\_ with\_ existing\_ log\_ group] ( #module\_ step\_ function\_ with\_ existing\_ log\_ group ) | ../../ | n/a |
47
47
Original file line number Diff line number Diff line change @@ -241,12 +241,12 @@ resource "null_resource" "download_package" {
241
241
242
242
module "lambda_function" {
243
243
source = " terraform-aws-modules/lambda/aws"
244
- version = " ~> 2 .0"
244
+ version = " ~> 8 .0"
245
245
246
246
function_name = " ${ random_pet . this . id } -lambda"
247
247
description = " My awesome lambda function"
248
248
handler = " index.lambda_handler"
249
- runtime = " python3.8 "
249
+ runtime = " python3.12 "
250
250
251
251
publish = true
252
252
Original file line number Diff line number Diff line change 1
1
terraform {
2
- required_version = " >= 1.0 "
2
+ required_version = " >= 1.5.7 "
3
3
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 5.61 "
7
+ version = " >= 6.0 "
8
8
}
9
9
random = {
10
10
source = " hashicorp/random"
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ locals {
15
15
resource "aws_sfn_state_machine" "this" {
16
16
count = var. create ? 1 : 0
17
17
18
+ region = var. region
19
+
18
20
name = var. name
19
21
20
22
role_arn = var. use_existing_role ? var. role_arn : aws_iam_role. this [0 ]. arn
@@ -323,6 +325,8 @@ data "aws_cloudwatch_log_group" "sfn" {
323
325
resource "aws_cloudwatch_log_group" "sfn" {
324
326
count = var. create && local. enable_logging && ! var. use_existing_cloudwatch_log_group ? 1 : 0
325
327
328
+ region = var. region
329
+
326
330
name = coalesce (var. cloudwatch_log_group_name , " /aws/vendedlogs/states/${ var . name } " )
327
331
retention_in_days = var. cloudwatch_log_group_retention_in_days
328
332
kms_key_id = var. cloudwatch_log_group_kms_key_id
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ variable "use_existing_cloudwatch_log_group" {
26
26
# Step Function
27
27
# ###############
28
28
29
+ variable "region" {
30
+ description = " Region where the resource(s) will be managed. Defaults to the region set in the provider configuration"
31
+ type = string
32
+ default = null
33
+ }
29
34
variable "name" {
30
35
description = " The name of the Step Function"
31
36
type = string
Original file line number Diff line number Diff line change 1
1
terraform {
2
- required_version = " >= 1.0 "
2
+ required_version = " >= 1.5.7 "
3
3
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 5.61 "
7
+ version = " >= 6.0 "
8
8
}
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments