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
I expect to be able to use data.azurerm_express_route_circuit_peering.this.id to create Express route Connection
Actual Behaviour
Error: Invalid data source
│
│ on data.tf line 6, in data "azurerm_express_route_circuit_peering" "this":
│ 6: data "azurerm_express_route_circuit_peering" "this" {
│
│ The provider hashicorp/azurerm does not support data source "azurerm_express_route_circuit_peering".
│
│ Did you intend to use the managed resource type "azurerm_express_route_circuit_peering"? If so, declare this
│ using a "resource" block instead of a "data" block.
Steps to Reproduce
terraform init
terraform plan
terraform apply
Important Factoids
none
References
#0000
The text was updated successfully, but these errors were encountered:
data source "azurerm_express_route_circuit_peering" is really needed.
When connecting ExpressRoute Gateway and ExpressRoute Circuit, express_route_circuit_peering_id is required.
We can't create "azurerm_express_route_circuit_peering" via terraform because some ExpressRoute provider (mainly L3 provider) create peering settings from provider side. (If create peerings via terraform, it will be failed because of duplicate.)
Community Note
Terraform (and AzureRM Provider) Version
Terraform v1.0.8
on windows_amd64
Affected Resource(s)
azurerm_express_route_circuit_peering
Terraform Configuration Files
data "azurerm_express_route_circuit_peering" "this" {
peering_type = "AzurePrivatePeering"
express_route_circuit_name = var.er_name
resource_group_name = var.er_rg_name
}
Debug Output
Panic Output
Expected Behaviour
I expect to be able to use data.azurerm_express_route_circuit_peering.this.id to create Express route Connection
Actual Behaviour
Error: Invalid data source
│
│ on data.tf line 6, in data "azurerm_express_route_circuit_peering" "this":
│ 6: data "azurerm_express_route_circuit_peering" "this" {
│
│ The provider hashicorp/azurerm does not support data source "azurerm_express_route_circuit_peering".
│
│ Did you intend to use the managed resource type "azurerm_express_route_circuit_peering"? If so, declare this
│ using a "resource" block instead of a "data" block.
Steps to Reproduce
terraform init
terraform plan
terraform apply
Important Factoids
none
References
The text was updated successfully, but these errors were encountered: