mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -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,
|
Optional: true,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
},
|
},
|
||||||
"rtb_id": {
|
"route_table_id": {
|
||||||
Type: schema.TypeString,
|
Type: schema.TypeString,
|
||||||
Optional: true,
|
Optional: true,
|
||||||
Computed: true,
|
Computed: true,
|
||||||
@ -103,7 +103,7 @@ func dataSourceAwsRouteTableRead(d *schema.ResourceData, meta interface{}) error
|
|||||||
req := &ec2.DescribeRouteTablesInput{}
|
req := &ec2.DescribeRouteTablesInput{}
|
||||||
vpcId, vpcIdOk := d.GetOk("vpc_id")
|
vpcId, vpcIdOk := d.GetOk("vpc_id")
|
||||||
subnetId, subnetIdOk := d.GetOk("subnet_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")
|
tags, tagsOk := d.GetOk("tags")
|
||||||
filter, filterOk := d.GetOk("filter")
|
filter, filterOk := d.GetOk("filter")
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ data "aws_route_table" "by_subnet" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
data "aws_route_table" "by_id" {
|
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"]
|
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.
|
* `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
|
* `tags` - (Optional) A mapping of tags, each pair of which must exactly match
|
||||||
a pair on the desired Route Table.
|
a pair on the desired Route Table.
|
||||||
|
Loading…
Reference in New Issue
Block a user