In the framework, Blocks are not allowed to be computed, but the attributes within a block can have Computed
field.
var frameworkResourceSchema = schema.Schema{
Blocks: map[string]schema.Block{
"some_attr": schema.SetNestedBlock{
Description: "some description",
NestedObject: schema.NestedBlockObject{
Attributes: map[string]schema.Attribute{
"bucket_name": schema.StringAttribute{
Description: "some description",
Computed: true,
},
},
},
},
},
}
Regular computed attributes will be an Unknown
value during an update operation, but the behavior of the attributes nested in a block in an update operation is not defined in the docs. In my observation, they as well as the block they are in won’t be changed or be an Unknown
during an update, and I wonder if that’s an intended behavior. Thanks!
# (1 unchanged block hidden)