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.
69
84%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
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.
d49bc4c
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.