Skip to content

Fix linode_instance_config boot behavior to match linode_instance#2307

Open
cheeseburgermotivated wants to merge 1 commit into
linode:devfrom
cheeseburgermotivated:20260327-booted-behavior
Open

Fix linode_instance_config boot behavior to match linode_instance#2307
cheeseburgermotivated wants to merge 1 commit into
linode:devfrom
cheeseburgermotivated:20260327-booted-behavior

Conversation

@cheeseburgermotivated
Copy link
Copy Markdown

When the booted attribute is omitted in linode_instance_config, the resource previously would not boot newly created instances. This was inconsistent with linode_instance (with inline configs), which boots new instances automatically when booted is not specified.

This inconsistency forced users to set booted = true, which caused Terraform to enforce the power state on every apply. This meant that instances manually shut down through Cloud Manager, API, or CLI would be powered back on during terraform plan/apply, which is undesirable.

Changes:

  • Modified createResource to boot instances when booted is null or true
  • Instances now boot automatically on creation when booted is omitted
  • Power state management only occurs when booted is explicitly set
  • Updated schema description to clarify the new behavior
  • Added TestAccResourceInstanceConfig_bootedDefault to verify fix

This aligns the behavior with linode_instance: omitting booted boots new instances but doesn't force power state changes on existing ones, while setting booted = true/false provides explicit control.

Fixes behavior reported in user feedback where manually shut-down instances were unintentionally powered on during terraform operations.

Co-authored-by: GitHub Copilot noreply@github.com

When the `booted` attribute is omitted in linode_instance_config, the
resource previously would not boot newly created instances. This was
inconsistent with linode_instance (with inline configs), which boots
new instances automatically when `booted` is not specified.

This inconsistency forced users to set `booted = true`, which caused
Terraform to enforce the power state on every apply. This meant that
instances manually shut down through Cloud Manager, API, or CLI would
be powered back on during terraform plan/apply, which is undesirable.

Changes:
- Modified createResource to boot instances when `booted` is null or true
- Instances now boot automatically on creation when `booted` is omitted
- Power state management only occurs when `booted` is explicitly set
- Updated schema description to clarify the new behavior
- Added TestAccResourceInstanceConfig_bootedDefault to verify fix

This aligns the behavior with linode_instance: omitting `booted` boots
new instances but doesn't force power state changes on existing ones,
while setting `booted = true/false` provides explicit control.

Fixes behavior reported in user feedback where manually shut-down
instances were unintentionally powered on during terraform operations.

Co-authored-by: GitHub Copilot <noreply@github.com>
@cheeseburgermotivated cheeseburgermotivated requested review from a team as code owners March 27, 2026 17:33
@cheeseburgermotivated cheeseburgermotivated requested review from jriddle-linode, lgarber-akamai and psnoch-akamai and removed request for a team March 27, 2026 17:33
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.

1 participant