You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
1.4.4
Affected Resource(s)
data alicloud_cen_transit_router_route_table_associations
│ Error: Missing required argument
│
│ on .terraform/modules/interconnect_global_china.cen/main.tf line 65, in data "alicloud_cen_transit_router_route_table_associations" "china_transit_router_peering":
│ 65: data "alicloud_cen_transit_router_route_table_associations" "china_transit_router_peering" {
│
│ The argument "transit_router_route_table_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│ on .terraform/modules/interconnect_global_china.cen/main.tf line 68, in data "alicloud_cen_transit_router_route_table_associations" "china_transit_router_peering":
│ 68: transit_router_attachment_id = local.china_transit_router_attachment[0]
│
│ An argument named "transit_router_attachment_id" is not expected here.
When calling the ListTransitRouterRouteTableAssociations interface, at least one of the request parameters TransitRouterRouteTableId and TransitRouterAttachmentId must be entered:
If only the value of the TransitRouterRouteTableId parameter is specified , it means that you want to query the connection information of the network instance associated with the routing table of the enterprise edition forwarding router.
If only the value of the TransitRouterAttachmentId parameter is specified , it means that you want to query the routing table information of the enterprise edition forwarding router that is connected to the network instance to create an associated forwarding relationship.
Actual Behavior
Terraform throws an error if transit_router_route_table_id is not provided and doesn't recognize argument transit_router_attachment_id
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Create a Data Source as follows:
data"alicloud_cen_transit_router_route_table_associations""china_transit_router_peering" {
transit_router_attachment_id=local.china_transit_router_attachment[0]
}
2. Run terraform Plan
### Important Factoids
N/A
### References
N/A
The text was updated successfully, but these errors were encountered:
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
1.4.4
Affected Resource(s)
Terraform Configuration Files
Debug Output
│ Error: Missing required argument
│
│ on .terraform/modules/interconnect_global_china.cen/main.tf line 65, in data "alicloud_cen_transit_router_route_table_associations" "china_transit_router_peering":
│ 65: data "alicloud_cen_transit_router_route_table_associations" "china_transit_router_peering" {
│
│ The argument "transit_router_route_table_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│ on .terraform/modules/interconnect_global_china.cen/main.tf line 68, in data "alicloud_cen_transit_router_route_table_associations" "china_transit_router_peering":
│ 68: transit_router_attachment_id = local.china_transit_router_attachment[0]
│
│ An argument named "transit_router_attachment_id" is not expected here.
Panic Output
N/A
Expected Behavior
According to the provider documentation, one of transit_router_attachment_id or transit_router_route_table_id is required, but not both - (https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/data-sources/cen_transit_router_route_table_associations). Additionally, according to the API documentation only one argument is required:
When calling the ListTransitRouterRouteTableAssociations interface, at least one of the request parameters TransitRouterRouteTableId and TransitRouterAttachmentId must be entered:
If only the value of the TransitRouterRouteTableId parameter is specified , it means that you want to query the connection information of the network instance associated with the routing table of the enterprise edition forwarding router.
If only the value of the TransitRouterAttachmentId parameter is specified , it means that you want to query the routing table information of the enterprise edition forwarding router that is connected to the network instance to create an associated forwarding relationship.
Actual Behavior
Terraform throws an error if transit_router_route_table_id is not provided and doesn't recognize argument transit_router_attachment_id
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
The text was updated successfully, but these errors were encountered: