Use 'route_table_id' instead of 'rtb_id'

This commit is contained in:
Jake Champlin 2017-01-11 13:22:29 -05:00
parent d794bdfc26
commit 439b94707e
No known key found for this signature in database
GPG Key ID: DC31F41958EF4AC2
3 changed files with 4 additions and 4 deletions

View File

@ -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")

View File

@ -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"]
}
`

View File

@ -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.