mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -06:00
Fixing aws_instance schema
Some instance types have a block device by default. So when selecting such an instance type, you will not set a config for the block device, but the update/refresh func will notice one and update the state nonetheless. So in those cases the `block_device` becomes a `computed` field.
This commit is contained in:
parent
d448c1b9ac
commit
57ae6a5da6
@ -137,6 +137,7 @@ func resourceAwsInstance() *schema.Resource {
|
||||
"block_device": &schema.Schema{
|
||||
Type: schema.TypeSet,
|
||||
Optional: true,
|
||||
Computed: true,
|
||||
Elem: &schema.Resource{
|
||||
Schema: map[string]*schema.Schema{
|
||||
"device_name": &schema.Schema{
|
||||
|
Loading…
Reference in New Issue
Block a user