Optional+Computed nested object unknown on create

SkillCloud & infra

Use when Create fails with 'Received unknown value' on an Optional+Computed SingleNestedAttribute Path targeting a Go struct pointer. Model that field as types.Object.

Use Optional+Computed nested object unknown on create in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Optional+Computed nested object unknown on create and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Optional+Computed nested object unknown on create skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Optional+Computed nested object unknown on createStart free

What this skill tells your AI

The instructions your AI receives, as published by coralogix/terraform-provider-coralogix in .claude/skills/framework-optional-computed-nested-object/SKILL.md and read by Ahel’s review.

Trigger: req.Plan.Get fails with Received unknown value… Path: <attr> Target Type: *…Model Suggested Type: basetypes.ObjectValue when the nested block is omitted from HCL.

Fix: Store the attribute as types.Object in the resource model (not *SomeModel). Decode with .As() only when !IsNull() && !IsUnknown(). Flatten with types.ObjectValueFrom / ObjectNull.

Why: Omitted Optional+Computed nested attributes are unknown on create. Go struct pointers cannot represent unknown; types.Object can.

Signals

GitHub stars
22
Forks
14
Last commit
Oct 2026
Advanced
Item type
skill
Key
framework-optional-computed-nested-object
Source
github.com/coralogix/terraform-provider-coralogix