So this is very similar to a recent post:
I’m creating a provider whose input I can’t get back in Read. The problem is that it’s not a parent level attribute.
My Resource attribute looks like:
"resources": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
ConfigMode: schema.SchemaConfigModeAttr,
Elem: someOtherResource,
},
someOtherResource is defined in the same file like so:
var someOtherResource= &schema.Resource{
Schema: map[string]*schema.Schema{
"some_attribute": {
Type: schema.TypeString,
Optional: true,
},
"filename": {
Type: schema.TypeString,
Optional: true,
},
},
}
filename is the attribute in question because it’s going to upload something from the local machine into the server, but I can’t get back that value back from the server.
In running the test the Read expectedly shows the plan is not empty and its because of the difference in the config and the actual Read result.
I’m wondering how I can skip checking the filename attribute.