mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-24 16:01:25 -04:00
providers/aws: route table prepare for routes
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user