Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: terraform plan fails for data resource that allow user to fetch port by name #802

Open
Mithun2507 opened this issue Oct 21, 2024 · 1 comment
Labels
area/resources/fabric Issues related to Fabric and ECX APIs bug Something isn't working

Comments

@Mithun2507
Copy link

Terraform Version

v1.7.4

Equinix Provider Version

version = "1.36"

Effected Terraform Resources

equinix_fabric_ports
https://registry.terraform.io/providers/equinix/equinix/latest/docs/data-sources/fabric_ports

Terraform Config Files

data "equinix_fabric_ports" "equinix_port_chicago_1" {

filters {

name = local.equinix_port_chicago_1

}

Debug Output

No response

Panic Output

No response

Expected Behavior

On terraform plan lookup should run without any error

Actual Behavior

the terraform plan fails with below error

Error: json: cannot unmarshal number into Go struct field _AllPortsResponse.data of type string

│ with data.equinix_fabric_ports.equinix_port_chicago_1,
│ on network.tf line 223, in data "equinix_fabric_ports" "equinix_port_chicago_1":

Steps to Reproduce

write the above terraform code
ensure correct Equinix provider authentication
run terraform plan
same error occurs for all Equinix provider versions

@Mithun2507 Mithun2507 added the bug Something isn't working label Oct 21, 2024
@thogarty thogarty added the area/resources/fabric Issues related to Fabric and ECX APIs label Oct 22, 2024
@thogarty
Copy link
Contributor

Hi @Mithun2507 , this is a known issue which we have fixed with version v2.9.0. Please upgrade your Equinix Terraform Version to resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/resources/fabric Issues related to Fabric and ECX APIs bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants