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:
Sander van Harmelen 2014-12-25 21:58:26 +01:00
parent d448c1b9ac
commit 57ae6a5da6
1 changed files with 1 additions and 0 deletions

View File

@ -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{