mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
Use 'route_table_id' instead of 'rtb_id'
This commit is contained in:
parent
d794bdfc26
commit
439b94707e
@ -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")
|
||||
|
||||
|
@ -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"]
|
||||
}
|
||||
`
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user