providers/aws: validation of route table

This commit is contained in:
Mitchell Hashimoto 2014-07-08 16:17:14 -07:00
parent d0dc045282
commit 2fd5b36550
1 changed files with 4 additions and 0 deletions

View File

@ -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,