diff --git a/builtin/providers/aws/resource_aws_route.go b/builtin/providers/aws/resource_aws_route.go index 017978903..034763b72 100644 --- a/builtin/providers/aws/resource_aws_route.go +++ b/builtin/providers/aws/resource_aws_route.go @@ -40,16 +40,19 @@ func resourceAwsRoute() *schema.Resource { "gateway_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "nat_gateway_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "instance_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "instance_owner_id": &schema.Schema{ @@ -60,6 +63,7 @@ func resourceAwsRoute() *schema.Resource { "network_interface_id": &schema.Schema{ Type: schema.TypeString, Optional: true, + Computed: true, }, "origin": &schema.Schema{ diff --git a/builtin/providers/aws/resource_aws_route_test.go b/builtin/providers/aws/resource_aws_route_test.go index 77ae56ca3..a63d91acb 100644 --- a/builtin/providers/aws/resource_aws_route_test.go +++ b/builtin/providers/aws/resource_aws_route_test.go @@ -32,7 +32,7 @@ func TestAccAWSRoute_basic(t *testing.T) { } resource.Test(t, resource.TestCase{ - PreCheck: func() { + PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -95,7 +95,7 @@ func TestAccAWSRoute_changeCidr(t *testing.T) { } resource.Test(t, resource.TestCase{ - PreCheck: func() { + PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, @@ -133,7 +133,7 @@ func TestAccAWSRoute_noopdiff(t *testing.T) { } resource.Test(t, resource.TestCase{ - PreCheck: func() { + PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders,