Skip to content

Commit

Permalink
ci(renovate): Enable terraform version updates (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris3ware authored Feb 27, 2025
1 parent b22622a commit aae1b3f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
1 change: 1 addition & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"repo",
"terraform-ci",
"terraform-docs",
"tflint",
"trunk"
]
],
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/terraform-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
with:
dir_names: true
dir_names_max_depth: 2
files: terraform/**
files: |
terraform/**
**/.hcl
matrix: true

terraform-deploy:
Expand Down
5 changes: 3 additions & 2 deletions .renovaterc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"enabled": true,
"addLabels": ["tf-update"],
"minimumReleaseAge": "3 days",
"commitMessagePrefix": "feat({{depName}}): ",
"commitMessagePrefix": "feat(iac): ",
"commitMessageTopic": "{{depName}} provider"
},
{
Expand All @@ -22,7 +22,8 @@
"enabled": true,
"fileMatch": ["\\.tflint_(ci|trunk)\\.hcl$"],
"minimumReleaseAge": "3 days",
"commitMessagePrefix": "feat({{depName}}): "
"commitMessagePrefix": "feat(tflint): ",
"commitMessageTopic": "{{depName}}"
},
"vulnerabilityAlerts": {
"addLabels": ["security"],
Expand Down
5 changes: 3 additions & 2 deletions terraform/development/versions.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
terraform {
# Must be above 1.9.0 to allow cross-object referencing for input variable validations
required_version = ">=1.9.0, < 2.0.0"
# `~> 1.9` means any version greater than or equal to 1.9 but less than 2.0
required_version = "~> 1.9"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~>5.69.0"
version = "~> 5.69.0"
}
# http = {
# source = "hashicorp/http"
Expand Down
5 changes: 3 additions & 2 deletions terraform/production/versions.tf
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
terraform {
# Must be above 1.9.0 to allow cross-object referencing for input variable validations
required_version = ">=1.9.0, < 2.0.0"
# `~> 1.9` means any version greater than or equal to 1.9 but less than 2.0
required_version = "~> 1.9"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~>5.69.0"
version = "~> 5.69.0"
}
# http = {
# source = "hashicorp/http"
Expand Down

0 comments on commit aae1b3f

Please sign in to comment.