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 11repos :
22 - repo : https://github.com/antonbabenko/pre-commit-terraform
3- rev : v1.96.1
3+ rev : v1.99.4
44 hooks :
55 - id : terraform_fmt
66 - id : terraform_docs
Original file line number Diff line number Diff line change @@ -133,14 +133,14 @@ module "step_function" {
133133
134134| Name | Version |
135135| ------| ---------|
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 |
138138
139139## Providers
140140
141141| Name | Version |
142142| ------| ---------|
143- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.61 |
143+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 6.0 |
144144
145145## Modules
146146
@@ -204,6 +204,7 @@ No modules.
204204| <a name =" input_policy_path " ></a > [ policy\_ path] ( #input\_ policy\_ path ) | Path of IAM policies to use for Step Function | ` string ` | ` null ` | no |
205205| <a name =" input_policy_statements " ></a > [ policy\_ statements] ( #input\_ policy\_ statements ) | Map of dynamic policy statements to attach to IAM role | ` any ` | ` {} ` | no |
206206| <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 |
207208| <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 |
208209| <a name =" input_role_description " ></a > [ role\_ description] ( #input\_ role\_ description ) | Description of IAM role to use for Step Function | ` string ` | ` null ` | no |
209210| <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
2222
2323| Name | Version |
2424| ------| ---------|
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 |
2727| <a name =" requirement_null " ></a > [ null] ( #requirement\_ null ) | >= 2 |
2828| <a name =" requirement_random " ></a > [ random] ( #requirement\_ random ) | >= 2 |
2929
3030## Providers
3131
3232| Name | Version |
3333| ------| ---------|
34- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.61 |
34+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 6.0 |
3535| <a name =" provider_null " ></a > [ null] ( #provider\_ null ) | >= 2 |
3636| <a name =" provider_random " ></a > [ random] ( #provider\_ random ) | >= 2 |
3737
@@ -41,7 +41,7 @@ Note that this example may create resources which cost money. Run `terraform des
4141| ------| --------| ---------|
4242| <a name =" module_disabled_step_function " ></a > [ disabled\_ step\_ function] ( #module\_ disabled\_ step\_ function ) | ../../ | n/a |
4343| <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 |
4545| <a name =" module_step_function " ></a > [ step\_ function] ( #module\_ step\_ function ) | ../../ | n/a |
4646| <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 |
4747
Original file line number Diff line number Diff line change @@ -241,12 +241,12 @@ resource "null_resource" "download_package" {
241241
242242module "lambda_function" {
243243 source = " terraform-aws-modules/lambda/aws"
244- version = " ~> 2 .0"
244+ version = " ~> 8 .0"
245245
246246 function_name = " ${ random_pet . this . id } -lambda"
247247 description = " My awesome lambda function"
248248 handler = " index.lambda_handler"
249- runtime = " python3.8 "
249+ runtime = " python3.12 "
250250
251251 publish = true
252252
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 1.0 "
2+ required_version = " >= 1.5.7 "
33
44 required_providers {
55 aws = {
66 source = " hashicorp/aws"
7- version = " >= 5.61 "
7+ version = " >= 6.0 "
88 }
99 random = {
1010 source = " hashicorp/random"
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ locals {
1515resource "aws_sfn_state_machine" "this" {
1616 count = var. create ? 1 : 0
1717
18+ region = var. region
19+
1820 name = var. name
1921
2022 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" {
323325resource "aws_cloudwatch_log_group" "sfn" {
324326 count = var. create && local. enable_logging && ! var. use_existing_cloudwatch_log_group ? 1 : 0
325327
328+ region = var. region
329+
326330 name = coalesce (var. cloudwatch_log_group_name , " /aws/vendedlogs/states/${ var . name } " )
327331 retention_in_days = var. cloudwatch_log_group_retention_in_days
328332 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" {
2626# Step Function
2727# ###############
2828
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+ }
2934variable "name" {
3035 description = " The name of the Step Function"
3136 type = string
Original file line number Diff line number Diff line change 11terraform {
2- required_version = " >= 1.0 "
2+ required_version = " >= 1.5.7 "
33
44 required_providers {
55 aws = {
66 source = " hashicorp/aws"
7- version = " >= 5.61 "
7+ version = " >= 6.0 "
88 }
99 }
1010}
You can’t perform that action at this time.
0 commit comments