diff --git a/apstra/resource_configlet.go b/apstra/resource_configlet.go index ec067cbb..439ec2ab 100644 --- a/apstra/resource_configlet.go +++ b/apstra/resource_configlet.go @@ -78,6 +78,11 @@ func (o *resourceConfiglet) ValidateConfig(ctx context.Context, req resource.Val return } + // Delay Validation until the involved attributes have a known value. + if config.Generators.IsUnknown() { + return + } + // extract generators from config var generators []design.ConfigletGenerator resp.Diagnostics.Append(config.Generators.ElementsAs(ctx, &generators, false)...)