Skip to content

feat!: Bump terraform required_version to >= 1.5.7 and AWS provider to >= 6#110

Merged
baolsen merged 1 commit into
mainfrom
2026-05-08-bump-version
May 8, 2026
Merged

feat!: Bump terraform required_version to >= 1.5.7 and AWS provider to >= 6#110
baolsen merged 1 commit into
mainfrom
2026-05-08-bump-version

Conversation

@baolsen
Copy link
Copy Markdown
Contributor

@baolsen baolsen commented May 8, 2026

Description

  • Update Terraform minimum version from 0.14 to 1.5.7+
  • Update AWS provider minimum version from 5 to 6
  • Misc CI/devtools housekeeping updates

Related Issues

Required for #109

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📚 Documentation update
  • 🔧 Configuration change
  • ♻️ Code refactoring
  • ⚡ Performance improvement
  • ✅ Test addition or update
  • 🔒 Security improvement

Changes Made

Per description

Testing

None

Breaking Changes

Terraform version and AWS provider version is updated.

These have been out for a long time now, users of this module are expected to update their software accordingly.

Notes

By submitting this pull request, I confirm that my contribution is made under the terms of the project's license.

@baolsen baolsen requested review from NivenInTheCloud and Copilot May 8, 2026 07:33
@baolsen baolsen merged commit c80bb67 into main May 8, 2026
14 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the module’s minimum supported Terraform and AWS provider versions (Terraform >= 1.5.7 and AWS provider >= 6) and refreshes local/CI developer tooling to match the new baseline (mise lockfile, pre-commit hooks, and trivy config).

Changes:

  • Bump Terraform required_version to >= 1.5.7, < 2.0 and AWS provider to >= 6, < 7 (including README + examples docs refresh).
  • Rework dev tooling to be mise-driven (lockfile enabled, pinned tool versions, terraform-docs task script).
  • Add local pre-commit security scanning via trivy config (with CI pre-commit job skipping that hook).

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
trivy.yaml Adds Trivy configuration (skip dirs) for local trivy config scans.
terraform.tf Updates Terraform and AWS provider version constraints for the root module.
README.md Regenerates requirements/provider tables to reflect new minimum versions.
mise.toml Enables mise lockfile and pins/expands toolchain (python, terraform-docs, tflint, trivy, etc.).
mise.lock Adds generated lockfile pinning exact tool versions and download metadata.
mise-tasks/terraform-docs.sh Introduces a mise task to run terraform-docs across root + examples (+ modules if present).
examples/multiple-runners/terraform.tf Updates example Terraform minimum version.
examples/multiple-runners/README.md Regenerates example requirements table to reflect new Terraform minimum.
examples/basic/terraform.tf Updates example Terraform minimum version.
examples/basic/README.md Regenerates example requirements table to reflect new Terraform minimum.
examples/basic-org/terraform.tf Updates example Terraform minimum version.
examples/basic-org/README.md Regenerates example requirements table to reflect new Terraform minimum.
examples/advanced/terraform.tf Updates example Terraform minimum version.
examples/advanced/README.md Regenerates example requirements table to reflect new Terraform minimum.
examples/addition-iam-policies/terraform.tf Updates example Terraform minimum version.
examples/addition-iam-policies/README.md Regenerates example requirements table to reflect new Terraform minimum.
Dockerfile Switches devcontainer base image reference to the newer mcr.microsoft.com/devcontainers/... image format.
.pre-commit-config.yaml Updates hook versions and migrates shfmt/shellcheck/terraform-docs/trivy scanning to local system hooks (mise-backed).
.github/workflows/pre-commit-and-tests.yml Skips the trivy-config hook in CI pre-commit runs via SKIP.
.flake8 Removes flake8 configuration (tooling appears to be moving to ruff-only).
.devcontainer/devcontainer.json Updates devcontainer build args to match the Dockerfile’s new IMAGE argument.
Comments suppressed due to low confidence (1)

terraform.tf:8

  • With the AWS provider minimum bumped to v6, the module currently still references data.aws_region.current.name (e.g., locals.tf and examples/addition-iam-policies/iam.tf). In AWS provider v6 this attribute is deprecated (see #109); switch those references to data.aws_region.current.region to avoid deprecation warnings (and future breakage).

Comment thread .pre-commit-config.yaml
Comment thread mise.toml
jq = "latest"
node = "latest"
pre-commit = "latest"
python = "3.13" # For pre-commit
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, I'll patch this.

@baolsen baolsen deleted the 2026-05-08-bump-version branch May 8, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants