CtrlK
BlogDocsLog inGet started
Tessl Logo

framework-import-dynamic-attributes

Use when a Terraform Plugin Framework resource import reads required DynamicAttribute values. Handle imported partial state before converting dynamic values.

68

Quality

81%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Framework Import Dynamic Attributes

Trigger: A framework resource uses ImportStatePassthroughID and a required schema.DynamicAttribute.

Fix: In Read, treat null, unknown, or zero-value dynamic attributes as absent imported state, fetch backend values, and only overwrite fetched state with prior dynamic state when the prior value is known.

Why: Terraform import initially supplies only the imported ID, so converting a missing dynamic value as if it came from config can fail before the backend read populates state.

Repository
coralogix/terraform-provider-coralogix
Last updated
First committed

Is this your skill?

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.