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{
|
"block_device": &schema.Schema{
|
||||||
Type: schema.TypeSet,
|
Type: schema.TypeSet,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
|
Computed: true,
|
||||||
Elem: &schema.Resource{
|
Elem: &schema.Resource{
|
||||||
Schema: map[string]*schema.Schema{
|
Schema: map[string]*schema.Schema{
|
||||||
"device_name": &schema.Schema{
|
"device_name": &schema.Schema{
|
||||||
|
|
Loading…
Reference in New Issue