This is the full error:
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to pgedge_cluster.tech, provider
│ "provider[\""]" produced an unexpected new value:
│ .node_groups.aws[0].availability_zones: new element 0 has appeared.
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to pgedge_cluster.tech, provider
│ "provider[\""]" produced an unexpected new value:
│ .node_groups.aws[0].nodes: new element 0 has appeared.
This is the Schema function part of my resource:
"nodes": schema.ListNestedAttribute{
Computed: true,
Optional: true,
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
"display_name": schema.StringAttribute{
Optional: true,
Computed: true,
Description: "Display name of the node",
},
"ip_address": schema.StringAttribute{
Optional: true,
Computed: true,
Description: "IP address of the node",
},
"is_active": schema.BoolAttribute{
Optional: true,
Computed: true,
Description: "Is the node active",
},
},
},
},
"availability_zones": schema.ListAttribute{
ElementType: types.StringType,
Computed: true,
Optional: true,
},
And this is how im using them in my .tf file:
nodes = [],
availability_zones = []
The Create method is adding values to these fields after apply