diff --git a/builtin/providers/aws/data_source_aws_route_table.go b/builtin/providers/aws/data_source_aws_route_table.go index 09f70e9d1b..bdbcda5165 100644 --- a/builtin/providers/aws/data_source_aws_route_table.go +++ b/builtin/providers/aws/data_source_aws_route_table.go @@ -18,7 +18,7 @@ func dataSourceAwsRouteTable() *schema.Resource { Optional: true, Computed: true, }, - "rtb_id": { + "route_table_id": { Type: schema.TypeString, Optional: true, Computed: true, @@ -103,7 +103,7 @@ func dataSourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error req := &ec2.DescribeRouteTablesInput{} vpcId, vpcIdOk := d.GetOk("vpc_id") subnetId, subnetIdOk := d.GetOk("subnet_id") - rtbId, rtbOk := d.GetOk("rtb_id") + rtbId, rtbOk := d.GetOk("route_table_id") tags, tagsOk := d.GetOk("tags") filter, filterOk := d.GetOk("filter") diff --git a/builtin/providers/aws/data_source_aws_route_table_test.go b/builtin/providers/aws/data_source_aws_route_table_test.go index 7114c8d183..b4f6305f61 100644 --- a/builtin/providers/aws/data_source_aws_route_table_test.go +++ b/builtin/providers/aws/data_source_aws_route_table_test.go @@ -173,7 +173,7 @@ data "aws_route_table" "by_subnet" { } data "aws_route_table" "by_id" { - rtb_id = "${aws_route_table.test.id}" + route_table_id = "${aws_route_table.test.id}" depends_on = ["aws_route_table_association.a"] } ` diff --git a/website/source/docs/providers/aws/d/route_table.html.markdown b/website/source/docs/providers/aws/d/route_table.html.markdown index b27175ff74..4da99d1c07 100644 --- a/website/source/docs/providers/aws/d/route_table.html.markdown +++ b/website/source/docs/providers/aws/d/route_table.html.markdown @@ -42,7 +42,7 @@ Route Table whose data will be exported as attributes. * `filter` - (Optional) Custom filter block as described below. -* `rtb_id` - (Optional) The id of the specific Route Table to retrieve. +* `route_table_id` - (Optional) The id of the specific Route Table to retrieve. * `tags` - (Optional) A mapping of tags, each pair of which must exactly match a pair on the desired Route Table.