diff --git a/builtin/providers/aws/resource_aws_route_table.go b/builtin/providers/aws/resource_aws_route_table.go index 64e59bbc8..f213f2241 100644 --- a/builtin/providers/aws/resource_aws_route_table.go +++ b/builtin/providers/aws/resource_aws_route_table.go @@ -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, }, } diff --git a/builtin/providers/aws/resources.go b/builtin/providers/aws/resources.go index 7b48dec7b..018fd1fb0 100644 --- a/builtin/providers/aws/resources.go +++ b/builtin/providers/aws/resources.go @@ -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,