- Notifications
You must be signed in to change notification settings - Fork686
fix: prevent unnecessary updates when cpu_options is unset#4806
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this 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 fixes an issue where Terraform would force unnecessary resource updates by replacing a staticcpu_options block with a dynamic one that only creates the block whencpu_options is actually set.
- Replaces static
cpu_optionsblock with dynamic block to prevent forced updates - Uses conditional
for_eachto only create the block whenvar.cpu_optionsis not null - Updates field access to use
cpu_options.valuesyntax within the dynamic block
Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.
npalm left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
8a1cd6f intogithub-aws-runners:mainUh oh!
There was an error while loading.Please reload this page.
🤖 I have created a release *beep* *boop*---##[6.8.1](v6.8.0...v6.8.1)(2025-10-04)### Bug Fixes* prevent unnecessary updates when cpu_options is unset([#4806](#4806))([8a1cd6f](8a1cd6f))@edersonbrilhante---This PR was generated with [ReleasePlease](https://github.com/googleapis/release-please). See[documentation](https://github.com/googleapis/release-please#release-please).Co-authored-by: runners-releaser[bot] <194412594+runners-releaser[bot]@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
This PR will replace:
with:
This way, if
cpu_optionsis not set, Terraform willnot force a resource update every time.This issue was introduced in PR#4789