Merge pull request #4021 from hashicorp/b-require-vpc-for-subnet

provider/aws: Make VPC ID required on subnets
This commit is contained in:
Paul Hinze 2015-11-23 09:02:23 -06:00
commit 8ee8d384aa
1 changed files with 1 additions and 2 deletions

View File

@ -22,9 +22,8 @@ func resourceAwsSubnet() *schema.Resource {
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"vpc_id": &schema.Schema{ "vpc_id": &schema.Schema{
Type: schema.TypeString, Type: schema.TypeString,
Optional: true, Required: true,
ForceNew: true, ForceNew: true,
Computed: true,
}, },
"cidr_block": &schema.Schema{ "cidr_block": &schema.Schema{