From 99e3d62cd8d9e8ab8bf47b74c2f63a1c20725235 Mon Sep 17 00:00:00 2001 From: James Nugent Date: Mon, 23 Nov 2015 16:39:12 +0200 Subject: [PATCH] provider/aws: Make VPC ID required on subnets --- builtin/providers/aws/resource_aws_subnet.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/builtin/providers/aws/resource_aws_subnet.go b/builtin/providers/aws/resource_aws_subnet.go index 95a9e3208..880a16098 100644 --- a/builtin/providers/aws/resource_aws_subnet.go +++ b/builtin/providers/aws/resource_aws_subnet.go @@ -22,9 +22,8 @@ func resourceAwsSubnet() *schema.Resource { Schema: map[string]*schema.Schema{ "vpc_id": &schema.Schema{ Type: schema.TypeString, - Optional: true, + Required: true, ForceNew: true, - Computed: true, }, "cidr_block": &schema.Schema{