providers/aws: route table prepare for routes
This commit is contained in:
parent
cf3f26a1de
commit
fdfed5000f
|
@ -97,6 +97,7 @@ func resource_aws_route_table_diff(
|
||||||
b := &diff.ResourceBuilder{
|
b := &diff.ResourceBuilder{
|
||||||
Attrs: map[string]diff.AttrType{
|
Attrs: map[string]diff.AttrType{
|
||||||
"vpc_id": diff.AttrTypeCreate,
|
"vpc_id": diff.AttrTypeCreate,
|
||||||
|
"route": diff.AttrTypeUpdate,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,13 @@ func init() {
|
||||||
|
|
||||||
"aws_route_table": resource.Resource{
|
"aws_route_table": resource.Resource{
|
||||||
ConfigValidator: &config.Validator{
|
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,
|
Create: resource_aws_route_table_create,
|
||||||
Destroy: resource_aws_route_table_destroy,
|
Destroy: resource_aws_route_table_destroy,
|
||||||
|
|
Loading…
Reference in New Issue