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 7562b0d

Browse files
feat!: Upgrade AWS provider and min required Terraform version to 6.0 and 1.5.7 respectively (#70)
1 parent 3690011 commit 7562b0d

File tree

8 files changed

+24
-14
lines changed

8 files changed

+24
-14
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
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

‎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) | >= 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 |

‎examples/complete/README.md‎

Lines changed: 4 additions & 4 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) | >= 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

‎examples/complete/main.tf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,12 +241,12 @@ resource "null_resource" "download_package" {
241241

242242
module "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

‎examples/complete/versions.tf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
terraform {
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"

‎main.tf‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ locals {
1515
resource "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" {
323325
resource "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

‎variables.tf‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
}
2934
variable "name" {
3035
description = "The name of the Step Function"
3136
type = string

‎versions.tf‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
terraform {
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
}

0 commit comments

Comments
(0)

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