From f8684497c74573a7771b7afb47c2c17a65ad0650 Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Wed, 11 Oct 2023 16:44:09 +0200 Subject: [PATCH 01/13] chore: Update pre-commit repos to the latest versions --- .pre-commit-config.yaml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ae9b8f..177b998 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,27 +1,33 @@ repos: - repo: https://github.com/gruntwork-io/pre-commit - rev: "v0.1.17" # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases + rev: "v0.1.22" # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases hooks: + - id: terraform-validate # It should be before tflint hook as it runs terraform init required by tflint + - id: terraform-fmt - id: tflint args: - --module - --config=.tflint.hcl - - id: terraform-validate - - id: terraform-fmt - repo: https://github.com/terraform-docs/terraform-docs - rev: "v0.16.0" # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases + rev: "v0.16.0" # Get the latest from: https://github.com/terraform-docs/terraform-docs/releases hooks: - id: terraform-docs-go args: ["."] - repo: https://github.com/bridgecrewio/checkov.git - rev: '2.0.1161' # Get the latest from: https://github.com/bridgecrewio/checkov/releases + rev: "2.5.6" # Get the latest from: https://github.com/bridgecrewio/checkov/releases hooks: - id: checkov + args: [--skip-check, "CKV_TF_1"] # Terraform module sources do not use a git url with a commit hash revision - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v4.3.0" # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases + rev: "v4.5.0" # Get the latest from: https://github.com/pre-commit/pre-commit-hooks/releases hooks: - id: check-merge-conflict + args: ["--assume-in-merge"] + - id: mixed-line-ending + args: ["--fix=no"] - id: end-of-file-fixer + - id: check-case-conflict + - id: check-yaml From af88ee73df3e392617cc3e503f4d381520dd3d8d Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Wed, 11 Oct 2023 16:44:24 +0200 Subject: [PATCH 02/13] chore: Add Dependabot configuration file (github-actions and terraform) --- .github/dependabot.yml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..8225332 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,40 @@ +version: 2 +updates: + + # GitHub actions + - package-ecosystem: "github-actions" + directory: "/" # For GitHub Actions "/" must be used for workflow files in ".github/workflows" + schedule: + interval: "weekly" + commit-message: + prefix: "chore: " + labels: + - "release/patch" + + # Terraform + - package-ecosystem: "terraform" + directory: "/" + schedule: + interval: "weekly" + commit-message: + prefix: "chore: " + labels: + - "release/patch" + + - package-ecosystem: "terraform" + directory: "/examples/full-example/" + schedule: + interval: "weekly" + commit-message: + prefix: "chore: " + labels: + - "release/patch" + + - package-ecosystem: "terraform" + directory: "/examples/basic/" + schedule: + interval: "weekly" + commit-message: + prefix: "chore: " + labels: + - "release/patch" From 428e80f02a5bbdc228569af993d4f7df01f9840f Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Wed, 11 Oct 2023 16:44:34 +0200 Subject: [PATCH 03/13] ci: Remove tf-docs workflow --- .github/workflows/documentation.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/documentation.yml diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml deleted file mode 100644 index 7ec13ba..0000000 --- a/.github/workflows/documentation.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Generate terraform docs -on: - - pull_request -jobs: - docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.ref }} - - - name: Render terraform docs inside the README.md and push changes back to PR branch - uses: terraform-docs/gh-actions@v1.0.0 - with: - working-dir: . - config-file: .terraform-docs.yml - git-push: "true" From 3ded52c28d708b4196ec696600f245143e309c8c Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Wed, 11 Oct 2023 16:45:00 +0200 Subject: [PATCH 04/13] ci: Change all workflows to call reusable workflows from getindata/github-workflows repository --- .github/workflows/pr-title.yml | 46 +++---------------- .github/workflows/pre-commit.yml | 78 ++------------------------------ .github/workflows/release.yml | 66 +++------------------------ 3 files changed, 17 insertions(+), 173 deletions(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 23b8c9d..9963b1f 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -1,4 +1,8 @@ -name: 'Validate PR title' +name: Validate PR title + +permissions: + pull-requests: read + statuses: write on: pull_request_target: @@ -9,42 +13,4 @@ on: jobs: main: - name: Validate PR title - runs-on: ubuntu-latest - steps: - # Please look up the latest version from - # https://github.com/amannn/action-semantic-pull-request/releases - - uses: amannn/action-semantic-pull-request@v4 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - # Configure which types are allowed. - # Default: https://github.com/commitizen/conventional-commit-types - types: | - feat - fix - improvement - docs - refactor - test - ci - chore - # Configure that a scope must always be provided. - requireScope: false - # Configure additional validation for the subject based on a regex. - # This example ensures the subject starts with an uppercase character. - subjectPattern: ^[A-Z].+$ - # If `subjectPattern` is configured, you can use this property to override - # the default error message that is shown when the pattern doesn't match. - # The variables `subject` and `title` can be used within the message. - subjectPatternError: | - The subject "{subject}" found in the pull request title "{title}" - didn't match the configured pattern. Please ensure that the subject - starts with an uppercase character. - # For work-in-progress PRs you can typically use draft pull requests - # from Github. However, private repositories on the free plan don't have - # this option and therefore this action allows you to opt-in to using the - # special "[WIP]" prefix to indicate this state. This will avoid the - # validation of the PR title and the pull request checks remain pending. - # Note that a second check will be reported if this is enabled. - wip: true + uses: getindata/github-workflows/.github/workflows/gh-validate-pr-title.yml@v0.3.1 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 4b6de9a..dd04c49 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,4 +1,6 @@ -name: Pre-Commit +name: TF Pre-Commit + +permissions: {} on: pull_request: @@ -6,76 +8,6 @@ on: - main - master -env: - TERRAFORM_DOCS_VERSION: v0.16.0 - jobs: - collectInputs: - name: Collect workflow inputs - runs-on: ubuntu-latest - outputs: - directories: ${{ steps.dirs.outputs.directories }} - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Get root directories - id: dirs - uses: clowdhaus/terraform-composite-actions/directories@v1.3.0 - - preCommitMinVersions: - name: Min TF pre-commit - needs: collectInputs - runs-on: ubuntu-latest - strategy: - matrix: - directory: ${{ fromJson(needs.collectInputs.outputs.directories) }} - steps: - - name: Checkout - uses: actions/checkout@v2 - - - name: Terraform min/max versions - id: minMax - uses: clowdhaus/terraform-min-max@v1.0.3 - with: - directory: ${{ matrix.directory }} - - - name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }} - # Run only validate pre-commit check on min version supported - if: ${{ matrix.directory != '.' }} - uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0 - with: - terraform-version: ${{ steps.minMax.outputs.minVersion }} - args: 'terraform-validate --color=always --show-diff-on-failure --files ${{ matrix.directory }}/*' - - - name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }} - # Run only validate pre-commit check on min version supported - if: ${{ matrix.directory == '.' }} - uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0 - with: - terraform-version: ${{ steps.minMax.outputs.minVersion }} - args: 'terraform-validate --color=always --show-diff-on-failure --files $(ls *.tf)' - - preCommitMaxVersion: - name: Max TF pre-commit - runs-on: ubuntu-latest - needs: collectInputs - steps: - - name: Checkout - uses: actions/checkout@v2 - with: - ref: ${{ github.event.pull_request.head.ref }} - repository: ${{github.event.pull_request.head.repo.full_name}} - - - name: Terraform min/max versions - id: minMax - uses: clowdhaus/terraform-min-max@v1.0.3 - - # Step required as tflint pre-commit hook requires module to be initialised - - run: terraform init - - - name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }} - uses: clowdhaus/terraform-composite-actions/pre-commit@v1.3.0 - with: - terraform-version: ${{ steps.minMax.outputs.maxVersion }} - terraform-docs-version: ${{ env.TERRAFORM_DOCS_VERSION }} + main: + uses: getindata/github-workflows/.github/workflows/tf-pre-commit.yml@v0.3.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b533188..ae78a7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,67 +1,13 @@ name: Create new release with changelog +permissions: + contents: write + pull-requests: write + on: - pull_request: + pull_request_target: types: [closed] jobs: release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 100 - - - name: Check release label - id: release-label - uses: actions-ecosystem/action-release-label@v1 - if: ${{ github.event.pull_request.merged == true }} - - - name: Get latest tag - id: get-latest-tag - uses: actions-ecosystem/action-get-latest-tag@v1 - if: ${{ steps.release-label.outputs.level != null }} - - - name: Bump semantic version - id: bump-semver - uses: actions-ecosystem/action-bump-semver@v1 - if: ${{ steps.release-label.outputs.level != null }} - with: - current_version: ${{ steps.get-latest-tag.outputs.tag }} - level: ${{ steps.release-label.outputs.level }} - - - name: Tag release - id: tag-relese - uses: actions-ecosystem/action-push-tag@v1 - if: ${{ steps.release-label.outputs.level != null }} - with: - tag: ${{ steps.bump-semver.outputs.new_version }} - message: "${{ steps.bump-semver.outputs.new_version }}: PR #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}" - - - name: Generate new release with changelog - id: release-with-changelog - uses: fregante/release-with-changelog@v3 - if: ${{ steps.bump-semver.outputs.new_version != null }} - with: - token: "${{ secrets.GITHUB_TOKEN }}" - exclude: '^meta|^docs|^document|^lint|^ci|^refactor|readme|workflow|bump|dependencies|yml|^v?\d+\.\d+\.\d+' - tag: "${{ steps.bump-semver.outputs.new_version }}" - title: "Version ${{ steps.bump-semver.outputs.new_version }}" - commit-template: "- {title} ← {hash}" - skip-on-empty: true - template: | - ### Changelog - - {commits} - - {range} - - - name: Comment PR - id: add-comment - uses: actions-ecosystem/action-create-comment@v1 - if: ${{ steps.bump-semver.outputs.new_version != null }} - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - number: ${{ steps.get-merged-pull-request.outputs.number }} - body: | - The new version [${{ steps.bump-semver.outputs.new_version }}](https://github.com/${{ github.repository }}/releases/tag/${{ steps.bump-semver.outputs.new_version }}) has been released :tada: + uses: getindata/github-workflows/.github/workflows/gh-create-release.yml@v0.3.1 From 7506a5333a06d35666d1fd3bc7a24ee02ce1d7bd Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Wed, 11 Oct 2023 16:45:14 +0200 Subject: [PATCH 05/13] chore: Update min required terraform version to 1.3 in examples --- examples/basic/versions.tf | 2 +- examples/full-example/versions.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/basic/versions.tf b/examples/basic/versions.tf index 52eb0ae..832469c 100644 --- a/examples/basic/versions.tf +++ b/examples/basic/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.0" + required_version = ">= 1.3.0" required_providers { azurerm = { diff --git a/examples/full-example/versions.tf b/examples/full-example/versions.tf index 52eb0ae..832469c 100644 --- a/examples/full-example/versions.tf +++ b/examples/full-example/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.0" + required_version = ">= 1.3.0" required_providers { azurerm = { From d66ebec4ab5f257928726062096009fa3e3fa32c Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Wed, 11 Oct 2023 16:45:29 +0200 Subject: [PATCH 06/13] chore: Update min required terraform version to 1.3 for the module --- README.md | 2 +- versions.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ab1f44d..05acea8 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ consumption_budgets = { | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.0 | +| [terraform](#requirement\_terraform) | >= 1.3.0 | | [azurerm](#requirement\_azurerm) | >= 3.0 | | [time](#requirement\_time) | 0.8.0 | diff --git a/versions.tf b/versions.tf index 9c1d67a..6ecf903 100644 --- a/versions.tf +++ b/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.0" + required_version = ">= 1.3.0" required_providers { azurerm = { From 4003765d7003cbd1cae467587399ecba74c3b1a6 Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Mon, 16 Oct 2023 11:19:14 +0200 Subject: [PATCH 07/13] ci: Update tflint config file --- .tflint.hcl | 38 +++++++++++--------------------------- 1 file changed, 11 insertions(+), 27 deletions(-) diff --git a/.tflint.hcl b/.tflint.hcl index e3aef49..6a33dcb 100644 --- a/.tflint.hcl +++ b/.tflint.hcl @@ -1,32 +1,16 @@ -rule "terraform_deprecated_interpolation" { - enabled = true +config { + ignore_module = { + "Invicton-Labs/deepmerge/null" = true + } } -rule "terraform_documented_outputs" { - enabled = true +plugin "terraform" { + enabled = true + version = "0.5.0" + source = "github.com/terraform-linters/tflint-ruleset-terraform" + preset = "all" } -rule "terraform_documented_variables" { - enabled = true -} - -rule "terraform_typed_variables" { - enabled = true -} - -rule "terraform_required_version" { - enabled = true -} - -rule "terraform_required_providers" { - enabled = true -} - -rule "terraform_unused_required_providers" { - enabled = true -} - -rule "terraform_naming_convention" { - enabled = true - format = "snake_case" +rule "terraform_standard_module_structure" { + enabled = false # Fails on context.tf } From 972c64326e65dac0fabb0b2890fd5292e07b806a Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Mon, 16 Oct 2023 11:19:29 +0200 Subject: [PATCH 08/13] docs: Add comments about versions of tflint and pre-commit repo --- .github/workflows/pre-commit.yml | 4 ++++ .pre-commit-config.yaml | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index dd04c49..831a570 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -11,3 +11,7 @@ on: jobs: main: uses: getindata/github-workflows/.github/workflows/tf-pre-commit.yml@v0.3.1 + with: + # tflint v0.46.0 is the latest version we can use with pre-commit v0.1.20 + # See .pre-commit-config.yaml for more details. + tflint-version: v0.46.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 177b998..7e759f2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,8 +1,10 @@ repos: - repo: https://github.com/gruntwork-io/pre-commit - rev: "v0.1.22" # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases + # Stick to v0.1.20 until this bug is fixed: https://github.com/gruntwork-io/pre-commit/issues/102 + # When updating, also check if tflint version in pre-commit workflow can be updated. + rev: "v0.1.20" # Get the latest from: https://github.com/gruntwork-io/pre-commit/releases hooks: - - id: terraform-validate # It should be before tflint hook as it runs terraform init required by tflint + - id: terraform-validate # It should be the first step as it runs terraform init required by tflint - id: terraform-fmt - id: tflint args: @@ -16,7 +18,7 @@ repos: args: ["."] - repo: https://github.com/bridgecrewio/checkov.git - rev: "2.5.6" # Get the latest from: https://github.com/bridgecrewio/checkov/releases + rev: "2.5.9" # Get the latest from: https://github.com/bridgecrewio/checkov/releases hooks: - id: checkov args: [--skip-check, "CKV_TF_1"] # Terraform module sources do not use a git url with a commit hash revision From d44a3cdc72b74ecc496d595ea5ef0d07e35dbda3 Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Mon, 16 Oct 2023 17:54:12 +0200 Subject: [PATCH 09/13] ci: Update tflint config file --- .tflint.hcl | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.tflint.hcl b/.tflint.hcl index 6a33dcb..af41919 100644 --- a/.tflint.hcl +++ b/.tflint.hcl @@ -1,9 +1,3 @@ -config { - ignore_module = { - "Invicton-Labs/deepmerge/null" = true - } -} - plugin "terraform" { enabled = true version = "0.5.0" From 16e2a3a214df91271ffe9491e09be180ce53e900 Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Thu, 19 Oct 2023 11:35:20 +0200 Subject: [PATCH 10/13] chore: Update workflows and pre-commit version --- .github/workflows/pr-title.yml | 2 +- .github/workflows/pre-commit.yml | 5 +++-- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index 9963b1f..40f63a1 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -13,4 +13,4 @@ on: jobs: main: - uses: getindata/github-workflows/.github/workflows/gh-validate-pr-title.yml@v0.3.1 + uses: getindata/github-workflows/.github/workflows/gh-validate-pr-title.yml@v1 diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 831a570..652dff0 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,6 +1,7 @@ name: TF Pre-Commit -permissions: {} +permissions: + contents: read on: pull_request: @@ -10,7 +11,7 @@ on: jobs: main: - uses: getindata/github-workflows/.github/workflows/tf-pre-commit.yml@v0.3.1 + uses: getindata/github-workflows/.github/workflows/tf-pre-commit.yml@v1 with: # tflint v0.46.0 is the latest version we can use with pre-commit v0.1.20 # See .pre-commit-config.yaml for more details. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ae78a7f..fb52469 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,4 +10,4 @@ on: jobs: release: - uses: getindata/github-workflows/.github/workflows/gh-create-release.yml@v0.3.1 + uses: getindata/github-workflows/.github/workflows/gh-create-release.yml@v1 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e759f2..2c59029 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: args: ["."] - repo: https://github.com/bridgecrewio/checkov.git - rev: "2.5.9" # Get the latest from: https://github.com/bridgecrewio/checkov/releases + rev: "2.5.13" # Get the latest from: https://github.com/bridgecrewio/checkov/releases hooks: - id: checkov args: [--skip-check, "CKV_TF_1"] # Terraform module sources do not use a git url with a commit hash revision From 4a26f4f688a911c52d15dd7af8a7aee3e9dd391f Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Fri, 20 Oct 2023 13:24:23 +0200 Subject: [PATCH 11/13] chore: Move back to 0.13 as min terraform version --- README.md | 2 +- examples/basic/versions.tf | 2 +- examples/full-example/versions.tf | 2 +- versions.tf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 05acea8..ab1f44d 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ consumption_budgets = { | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 1.3.0 | +| [terraform](#requirement\_terraform) | >= 0.13.0 | | [azurerm](#requirement\_azurerm) | >= 3.0 | | [time](#requirement\_time) | 0.8.0 | diff --git a/examples/basic/versions.tf b/examples/basic/versions.tf index 832469c..52eb0ae 100644 --- a/examples/basic/versions.tf +++ b/examples/basic/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3.0" + required_version = ">= 0.13.0" required_providers { azurerm = { diff --git a/examples/full-example/versions.tf b/examples/full-example/versions.tf index 832469c..52eb0ae 100644 --- a/examples/full-example/versions.tf +++ b/examples/full-example/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3.0" + required_version = ">= 0.13.0" required_providers { azurerm = { diff --git a/versions.tf b/versions.tf index 6ecf903..9c1d67a 100644 --- a/versions.tf +++ b/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 1.3.0" + required_version = ">= 0.13.0" required_providers { azurerm = { From a4713966b234bacd60d9364fa31f65c232ab07ff Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Fri, 20 Oct 2023 13:34:29 +0200 Subject: [PATCH 12/13] fix: Add providers file --- providers.tf | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 providers.tf diff --git a/providers.tf b/providers.tf new file mode 100644 index 0000000..ab91b24 --- /dev/null +++ b/providers.tf @@ -0,0 +1,3 @@ +provider "azurerm" { + features {} +} From 43b564cf51d7e5db22ec654291545b6c56961065 Mon Sep 17 00:00:00 2001 From: Kacper Muda Date: Fri, 20 Oct 2023 14:22:31 +0200 Subject: [PATCH 13/13] chore: Update min required terraform version to 1.3 for the module --- README.md | 2 +- examples/basic/versions.tf | 2 +- examples/full-example/versions.tf | 2 +- providers.tf | 3 --- versions.tf | 2 +- 5 files changed, 4 insertions(+), 7 deletions(-) delete mode 100644 providers.tf diff --git a/README.md b/README.md index ab1f44d..05acea8 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ consumption_budgets = { | Name | Version | |------|---------| -| [terraform](#requirement\_terraform) | >= 0.13.0 | +| [terraform](#requirement\_terraform) | >= 1.3.0 | | [azurerm](#requirement\_azurerm) | >= 3.0 | | [time](#requirement\_time) | 0.8.0 | diff --git a/examples/basic/versions.tf b/examples/basic/versions.tf index 52eb0ae..832469c 100644 --- a/examples/basic/versions.tf +++ b/examples/basic/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.0" + required_version = ">= 1.3.0" required_providers { azurerm = { diff --git a/examples/full-example/versions.tf b/examples/full-example/versions.tf index 52eb0ae..832469c 100644 --- a/examples/full-example/versions.tf +++ b/examples/full-example/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.0" + required_version = ">= 1.3.0" required_providers { azurerm = { diff --git a/providers.tf b/providers.tf deleted file mode 100644 index ab91b24..0000000 --- a/providers.tf +++ /dev/null @@ -1,3 +0,0 @@ -provider "azurerm" { - features {} -} diff --git a/versions.tf b/versions.tf index 9c1d67a..6ecf903 100644 --- a/versions.tf +++ b/versions.tf @@ -1,5 +1,5 @@ terraform { - required_version = ">= 0.13.0" + required_version = ">= 1.3.0" required_providers { azurerm = {