Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump terraform and provider versions, update pre-commit conf #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/static_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ jobs:

- name: run_pre_commit_terraform
run: |
TAG="v1.77.0@sha256:64ce1e4b99d85497fe646db0724669039b079b45fa8cd503b4dc23dbdca490ae"
TAG="v1.96.1@sha256:9aea677ac51d67eb96b3bbb4cf93b16afdde5476f984e75e87888850d18146c9"
docker run -v $(pwd):/lint -w /lint ghcr.io/antonbabenko/pre-commit-terraform:$TAG run -a
7 changes: 5 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
repos:
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.77.0
rev: 89f45610a846f56273a6c4290b3c42534175949e # v1.96.1
hooks:
- id: terraform_fmt
- id: terraform_docs
- id: terraform_tfsec
- id: terraform_trivy
# decomment to skip ./terraform
# args:
# - --args=--skip-dirs="**/.terraform"
- 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.

Loading