Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 75eaaa7

Browse files
feat!: Upgraded Terraform version to 1.0+ and added configurable timeouts (#53)
Co-authored-by: magreenbaum <magreenbaum>
1 parent e41a2a8 commit 75eaaa7

File tree

7 files changed

+29
-10
lines changed

7 files changed

+29
-10
lines changed

‎README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ module "step_function" {
133133

134134
| Name | Version |
135135
|------|---------|
136-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
137-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.27 |
136+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
137+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.66 |
138138

139139
## Providers
140140

141141
| Name | Version |
142142
|------|---------|
143-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.27 |
143+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.66 |
144144

145145
## Modules
146146

@@ -209,6 +209,7 @@ No modules.
209209
| <a name="input_role_permissions_boundary"></a> [role\_permissions\_boundary](#input\_role\_permissions\_boundary) | The ARN of the policy that is used to set the permissions boundary for the IAM role used by Step Function | `string` | `null` | no |
210210
| <a name="input_role_tags"></a> [role\_tags](#input\_role\_tags) | A map of tags to assign to IAM role | `map(string)` | `{}` | no |
211211
| <a name="input_service_integrations"></a> [service\_integrations](#input\_service\_integrations) | Map of AWS service integrations to allow in IAM role policy | `any` | `{}` | no |
212+
| <a name="input_sfn_state_machine_timeouts"></a> [sfn\_state\_machine\_timeouts](#input\_sfn\_state\_machine\_timeouts) | Create, update, and delete timeout configurations for the step function. | `map(string)` | `{}` | no |
212213
| <a name="input_tags"></a> [tags](#input\_tags) | Maps of tags to assign to the Step Function | `map(string)` | `{}` | no |
213214
| <a name="input_trusted_entities"></a> [trusted\_entities](#input\_trusted\_entities) | Step Function additional trusted entities for assuming roles (trust relationship) | `list(string)` | `[]` | no |
214215
| <a name="input_type"></a> [type](#input\_type) | Determines whether a Standard or Express state machine is created. The default is STANDARD. Valid Values: STANDARD \| EXPRESS | `string` | `"STANDARD"` | no |

‎examples/complete/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) | >= 0.13.1 |
26-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.27 |
25+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
26+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.66 |
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) | >= 3.27 |
34+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.66 |
3535
| <a name="provider_null"></a> [null](#provider\_null) | >= 2 |
3636
| <a name="provider_random"></a> [random](#provider\_random) | >= 2 |
3737

‎examples/complete/main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ EOF
151151
# END: Additional policies
152152
###########################
153153

154+
sfn_state_machine_timeouts = {
155+
create = "30m"
156+
delete = "50m"
157+
update = "30m"
158+
}
159+
154160
tags = {
155161
Module = "step_function"
156162
}

‎examples/complete/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
terraform {
2-
required_version = ">= 0.13.1"
2+
required_version = ">= 1.0"
33

44
required_providers {
5-
aws = ">= 3.27"
5+
aws = ">= 4.66"
66
random = ">= 2"
77
null = ">= 2"
88
}

‎main.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ resource "aws_sfn_state_machine" "this" {
3939

4040
type = upper(var.type)
4141

42+
timeouts {
43+
create = lookup(var.sfn_state_machine_timeouts, "create", null)
44+
delete = lookup(var.sfn_state_machine_timeouts, "delete", null)
45+
update = lookup(var.sfn_state_machine_timeouts, "update", null)
46+
}
47+
4248
tags = merge({ Name = var.name }, var.tags)
4349
}
4450

‎variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ variable "type" {
6161
}
6262
}
6363

64+
variable "sfn_state_machine_timeouts" {
65+
description = "Create, update, and delete timeout configurations for the step function."
66+
type = map(string)
67+
default = {}
68+
}
69+
6470
#################
6571
# CloudWatch Logs
6672
#################

‎versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
terraform {
2-
required_version = ">= 0.13.1"
2+
required_version = ">= 1.0"
33

44
required_providers {
5-
aws = ">= 3.27"
5+
aws = ">= 4.66"
66
}
77
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /