Skip to content

Commit

Permalink
build: Bump terraform and provider versions, update pre-commit conf
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrss committed Oct 17, 2024
1 parent 57dd812 commit 4af606d
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 154 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.0
rev: v1.96.1
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_tfsec
- id: terraform_trivy
- id: terraform_validate
args:
- --init-args=-lockfile=readonly
Expand Down
2 changes: 1 addition & 1 deletion .terraform-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.7
1.9.6
100 changes: 55 additions & 45 deletions src/core/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/core/99_locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
locals {
project = "${var.prefix}-${var.env_short}"
}
8 changes: 4 additions & 4 deletions src/core/99_main.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
terraform {
required_version = ">=1.3.0"
required_version = ">=1.9.6"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "<= 3.40.0"
version = "<= 3.116.0"
}
azuread = {
source = "hashicorp/azuread"
version = "<= 2.33.0"
version = "<= 2.53.1"
}
null = {
source = "hashicorp/null"
version = "<= 3.2.1"
version = "<= 3.2.3"
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/core/99_variables.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# general

variable "prefix" {
type = string
type = string
validation {
condition = (
length(var.prefix) <= 6
Expand Down
118 changes: 17 additions & 101 deletions src/core/README.md

Large diffs are not rendered by default.

0 comments on commit 4af606d

Please sign in to comment.