Skip to content

fix(deps): update terraform hashicorp/terraform to < 1.18 - #822

Merged
apeabody merged 6 commits into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/terraform-monorepo
Nov 23, 2026
Merged

apeabody merged 6 commits into
GoogleCloudPlatform:mainfrom
renovate-bot:renovate/terraform-monorepo

Conversation

@renovate-bot

@renovate-bot renovate-bot commented Aug 27, 2025 •

Copy link
Copy Markdown
Contributor

Updates hashicorp/terraform required_version upper bounds from < 1.13 to < 1.18 (preserving existing lower bounds >= v0.15.x) across all 6 versions.tf files, matching the Dependency Dashboard (#90) and unblocking newer cft/developer-tools-krm container images.

File From To
anthos-bm-apigee/versions.tf >= v0.15.5, < 1.13 >= v0.15.5, < 1.18
anthos-bm-gcp-terraform/versions.tf >= v0.15.4, < 1.13 >= v0.15.4, < 1.18
anthos-onprem-terraform/abm_user_cluster_manuallb/versions.tf >= v0.15.5, < 1.13 >= v0.15.5, < 1.18
anthos-onprem-terraform/abm_user_cluster_metallb/versions.tf >= v0.15.5, < 1.13 >= v0.15.5, < 1.18
anthos-onprem-terraform/avmw_user_cluster_metallb/versions.tf >= v0.15.5, < 1.13 >= v0.15.5, < 1.18
test/setup/versions.tf < 1.13 < 1.18

Terraform 1.13+ & 1.15+ Compatibility Fixes

  • anthos-bm-gcp-terraform/modules/vm/outputs.tf:26: Wrap vm_details.instances_details in nonsensitive(...) when projecting non-secret hostname, internalIp, and externalIp fields so Terraform 1.13+ nested module sensitivity propagation does not break for_each or root outputs.
  • anthos-bm-gcp-terraform/modules/init/variables.tf:127: Change var.module_depends_on from list(any) to any so Terraform 1.15+ accepts heterogeneous resource references (local_file.init_args_file[each.key], local_file.nfs_yaml).

@renovate-bot
renovate-bot requested review from a team and yoshi-approver as code owners August 27, 2025 16:58
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Aug 27, 2025
@dpebot

dpebot commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Summary of Changes

Hello @renovate-bot, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request updates the minimum and maximum required versions for HashiCorp Terraform across several configuration files. The change specifically modifies the required_version constraint in various versions.tf files to allow for Terraform versions up to, but not including, 1.14. This update ensures that the projects can leverage improvements and new functionalities introduced in Terraform 1.13.x while maintaining compatibility.

Highlights

  • Terraform Version Update: Updates the required_version constraint for HashiCorp Terraform in multiple versions.tf files to < 1.14. This change enables compatibility with Terraform 1.13.x, allowing the use of the latest features and bug fixes from that release.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This PR updates the Terraform version constraint, but in doing so, it removes the lower version bound. This is risky as it could allow execution with incompatible older Terraform versions. I've added suggestions to each versions.tf file to re-instate the lower bounds, ensuring module stability and preventing potential errors.

Comment thread anthos-bm-apigee/versions.tf Resolved
Comment thread anthos-bm-gcp-terraform/versions.tf Resolved
Comment thread test/setup/versions.tf Resolved
@dpebot

dpebot commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

5 similar comments
@dpebot

dpebot commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@dpebot

dpebot commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@dpebot

dpebot commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@dpebot

dpebot commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@dpebot

dpebot commented Aug 27, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@renovate-bot
renovate-bot force-pushed the renovate/terraform-monorepo branch from f9df432 to 7763a06 Compare August 28, 2025 22:00
@dpebot

dpebot commented Aug 28, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@dpebot

dpebot commented Sep 26, 2025

Copy link
Copy Markdown
Collaborator

/gcbrun

@apeabody apeabody added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 26, 2025
@forking-renovate

Copy link
Copy Markdown

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Preserves existing lower bounds (>= v0.15.x) while widening upper bound to < 1.18 across versions.tf files to match the Dependency Dashboard (GoogleCloudPlatform#90) and unblock newer cft/developer-tools-krm images.
@apeabody apeabody changed the title chore(deps): update terraform hashicorp/terraform to < 1.14 chore(deps): update terraform hashicorp/terraform to < 1.18 Nov 20, 2026
@dpebot

dpebot commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@apeabody apeabody removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Nov 20, 2026
…5+ list(any) compatibility

- Unwrap non-secret VM hostname/IP projection with nonsensitive(vm_details.instances_details)
  in anthos-bm-gcp-terraform/modules/vm/outputs.tf for Terraform 1.13+ nested sensitivity propagation.
- Relax var.module_depends_on from list(any) to any in anthos-bm-gcp-terraform/modules/init/variables.tf
  for Terraform 1.15+ heterogeneous list element validation.
@apeabody

Copy link
Copy Markdown
Collaborator

/gcbrun

1 similar comment
@dpebot

dpebot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@dpebot

dpebot commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

/gcbrun

@apeabody apeabody changed the title chore(deps): update terraform hashicorp/terraform to < 1.18 fix(deps): update terraform hashicorp/terraform to < 1.18 Nov 23, 2026
@apeabody
apeabody merged commit 17127e5 into GoogleCloudPlatform:main Nov 23, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants