Optional+Computed nested object unknown on create
SkillCloud & infraUse 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.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
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
github.com/coralogix/terraform-provider-coralogix
Related picks
Skill · samber
The pick for Gogo-sdk-specialist
Skill · a5c-ai
The pick for Govercel-react-best-practices
Skill · vercel-labs
More in Cloud & infraweb-design-guidelines
Skill · vercel-labs
More in Cloud & infraturborepo
Skill · vercel
More in Cloud & inframicrosoft-foundry
Skill · microsoft
More in Cloud & infra