Skip to content

Commit 359eb55

Browse files
authored
feat!: Update supported Terraform min version to v1.0+ and AWS provider to v4.0+ (#4)
1 parent a8827da commit 359eb55

File tree

10 files changed

+44
-24
lines changed

10 files changed

+44
-24
lines changed

.github/workflows/lock.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'Lock Threads'
2+
3+
on:
4+
schedule:
5+
- cron: '50 1 * * *'
6+
7+
jobs:
8+
lock:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: dessant/lock-threads@v3
12+
with:
13+
github-token: ${{ secrets.GITHUB_TOKEN }}
14+
issue-comment: >
15+
I'm going to lock this issue because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
16+
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
17+
issue-inactive-days: '30'
18+
pr-comment: >
19+
I'm going to lock this pull request because it has been closed for _30 days_ ⏳. This helps our maintainers find and focus on the active issues.
20+
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
21+
pr-inactive-days: '30'

.github/workflows/pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
# Please look up the latest version from
1616
# https://github.com/amannn/action-semantic-pull-request/releases
17-
- uses: amannn/action-semantic-pull-request@v3.4.6
17+
- uses: amannn/action-semantic-pull-request@v5.0.2
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:

.github/workflows/pre-commit.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Pre-Commit
33
on:
44
pull_request:
55
branches:
6-
- main
76
- master
87

98
env:
@@ -17,11 +16,11 @@ jobs:
1716
directories: ${{ steps.dirs.outputs.directories }}
1817
steps:
1918
- name: Checkout
20-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2120

2221
- name: Get root directories
2322
id: dirs
24-
uses: clowdhaus/terraform-composite-actions/directories@v1.3.0
23+
uses: clowdhaus/terraform-composite-actions/directories@v1.8.0
2524

2625
preCommitMinVersions:
2726
name: Min TF pre-commit
@@ -32,26 +31,26 @@ jobs:
3231
directory: ${{ fromJson(needs.collectInputs.outputs.directories) }}
3332
steps:
3433
- name: Checkout
35-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
3635

3736
- name: Terraform min/max versions
3837
id: minMax
39-
uses: clowdhaus/terraform-min-max@v1.0.3
38+
uses: clowdhaus/terraform-min-max@v1.2.1
4039
with:
4140
directory: ${{ matrix.directory }}
4241

4342
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
4443
# Run only validate pre-commit check on min version supported
4544
if: ${{ matrix.directory != '.' }}
46-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
45+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
4746
with:
4847
terraform-version: ${{ steps.minMax.outputs.minVersion }}
4948
args: 'terraform_validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*'
5049

5150
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
5251
# Run only validate pre-commit check on min version supported
5352
if: ${{ matrix.directory == '.' }}
54-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0
53+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
5554
with:
5655
terraform-version: ${{ steps.minMax.outputs.minVersion }}
5756
args: 'terraform_validate --color=always --show-diff-on-failure --files $(ls *.tf)'
@@ -62,17 +61,17 @@ jobs:
6261
needs: collectInputs
6362
steps:
6463
- name: Checkout
65-
uses: actions/checkout@v2
64+
uses: actions/checkout@v3
6665
with:
6766
ref: ${{ github.event.pull_request.head.ref }}
6867
repository: ${{github.event.pull_request.head.repo.full_name}}
6968

7069
- name: Terraform min/max versions
7170
id: minMax
72-
uses: clowdhaus/terraform-min-max@v1.0.3
71+
uses: clowdhaus/terraform-min-max@v1.2.1
7372

7473
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
75-
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.5.0
74+
uses: clowdhaus/terraform-composite-actions/pre-commit@v1.8.0
7675
with:
7776
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
7877
terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
if: github.repository_owner == 'terraform-aws-modules'
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323
with:
2424
persist-credentials: false
2525
fetch-depth: 0

.github/workflows/stale-actions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v4
10+
- uses: actions/stale@v6
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
# Staling issues and PR's

.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.72.1
3+
rev: v1.76.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,14 @@ Examples codified under the [`examples`](https://github.com/terraform-aws-module
108108

109109
| Name | Version |
110110
|------|---------|
111-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
112-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.33 |
111+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
112+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
113113

114114
## Providers
115115

116116
| Name | Version |
117117
|------|---------|
118-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.33 |
118+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
119119

120120
## Modules
121121

examples/complete/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ Note that this example may create resources which will incur monetary charges on
2323

2424
| Name | Version |
2525
|------|---------|
26-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
27-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.33 |
26+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.0 |
27+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 4.0 |
2828

2929
## Providers
3030

3131
| Name | Version |
3232
|------|---------|
33-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.33 |
33+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 4.0 |
3434

3535
## Modules
3636

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 = ">= 0.13.1"
2+
required_version = ">= 1.0"
33

44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.33"
7+
version = ">= 4.0"
88
}
99
}
1010
}

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 = ">= 0.13.1"
2+
required_version = ">= 1.0"
33

44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 3.33"
7+
version = ">= 4.0"
88
}
99
}
1010
}

0 commit comments

Comments
 (0)