providers/aws: route table prepare for routes

This commit is contained in:
Mitchell Hashimoto 2014-07-09 09:47:13 -07:00
parent cf3f26a1de
commit fdfed5000f
2 changed files with 8 additions and 1 deletions

View File

@ -97,6 +97,7 @@ func resource_aws_route_table_diff(
b := &diff.ResourceBuilder{
Attrs: map[string]diff.AttrType{
"vpc_id": diff.AttrTypeCreate,
"route": diff.AttrTypeUpdate,
},
}

View File

@ -43,7 +43,13 @@ func init() {
"aws_route_table": resource.Resource{
ConfigValidator: &config.Validator{
Required: []string{"vpc_id"},
Required: []string{
"vpc_id",
"route.*.cidr_block",
},
Optional: []string{
"route.*.gateway_id",
}
},
Create: resource_aws_route_table_create,
Destroy: resource_aws_route_table_destroy,