From 2fd5b36550e186925ca4b42f9da076615792b543 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 8 Jul 2014 16:17:14 -0700 Subject: [PATCH] providers/aws: validation of route table --- builtin/providers/aws/resources.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin/providers/aws/resources.go b/builtin/providers/aws/resources.go index cbb65507b..7b48dec7b 100644 --- a/builtin/providers/aws/resources.go +++ b/builtin/providers/aws/resources.go @@ -1,6 +1,7 @@ package aws import ( + "github.com/hashicorp/terraform/helper/config" "github.com/hashicorp/terraform/helper/resource" ) @@ -41,6 +42,9 @@ func init() { }, "aws_route_table": resource.Resource{ + ConfigValidator: &config.Validator{ + Required: []string{"vpc_id"}, + }, Create: resource_aws_route_table_create, Destroy: resource_aws_route_table_destroy, Diff: resource_aws_route_table_diff,