Detail:fmt.Sprintf("Could not create attribute %s in %s when generating import configuration. The plan will likely report the missing attribute as being deleted.",name,addr),
Extra:err,
})
continue
// If the value is a string storing a JSON value we want to represent it in a terraform native way
// and encapsulate it in `jsonencode` as it is the idiomatic representation
Detail:fmt.Sprintf("Could not parse JSON value of attribute %s in %s when generating import configuration. The plan will likely report the missing attribute as being deleted. This is most likely a bug in Terraform, please report it.",name,addr),
Extra:err,
})
continue
}
tok:=hclwrite.TokensForValue(ctyValue.Value)
if_,err:=tok.WriteTo(buf);err!=nil{
diags=diags.Append(&hcl.Diagnostic{
Severity:hcl.DiagWarning,
Summary:"Skipped part of config generation",
Detail:fmt.Sprintf("Could not create attribute %s in %s when generating import configuration. The plan will likely report the missing attribute as being deleted.",name,addr),
Extra:err,
})
continue
}
buf.WriteString(")")
}else{
tok:=hclwrite.TokensForValue(val)
if_,err:=tok.WriteTo(buf);err!=nil{
diags=diags.Append(&hcl.Diagnostic{
Severity:hcl.DiagWarning,
Summary:"Skipped part of config generation",
Detail:fmt.Sprintf("Could not create attribute %s in %s when generating import configuration. The plan will likely report the missing attribute as being deleted.",name,addr),