From 57ae6a5da653d3e38fd3fba5a4d039971cab6877 Mon Sep 17 00:00:00 2001 From: Sander van Harmelen Date: Thu, 25 Dec 2014 21:58:26 +0100 Subject: [PATCH] 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. --- builtin/providers/aws/resource_aws_instance.go | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/providers/aws/resource_aws_instance.go b/builtin/providers/aws/resource_aws_instance.go index 14bf045f9..01e42b0c6 100644 --- a/builtin/providers/aws/resource_aws_instance.go +++ b/builtin/providers/aws/resource_aws_instance.go @@ -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{