-
Notifications
You must be signed in to change notification settings - Fork 45
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]: Error: no value given for required property projectId #657
Comments
Hi @ctang10x , we're still in progress on this issue. Would you be able to provide us with the terraform log output API response from the port data source by re-running your terraform configuration with the TF_LOG env variable set to debug? Run Currently the thought is that the API response is failing to return |
We use TF cloud. I am not sure how to get those logs on TF cloud. |
@ctang10x , would you mind trying this guide to set the ENV variable for TF Cloud? https://support.hashicorp.com/hc/en-us/articles/360001113727-Enabling-trace-level-logs-in-Terraform-CLI-Cloud-or-Enterprise |
The TF plan failed, but the logs were showing up. |
Thank you, @ctang10x! Our theory has been confirmed. I'm implementing the fix now. You can see the Port API response is returning |
When will the fix be applied? We have a bunch of PR's for branches to merge. |
@ctang10x, we are actively working to attempt to get the bug fixed by EOD today. I will ping you with the fixed release version once it is available. Thank you for your patience! |
@ctang10x - removing shared file from your comment. These logs may contain credentials used for the different cloud providers which should have been removed before publishing. You should review it and renew credentials if necessary |
Hi @ctang10x, version 1.36.1 of the provider was released this morning. It should resolve your issue. Please try again with it and let us know. |
Still getting error, this time: Error: no value given for required property projectId |
Issue still in progress. The For now, the customer is unblocked by using Terraform Provider version |
* Removed required field for `projectId` from project model to resolve customer issue with Terraform Provider * equinix/terraform-provider-equinix#657 * Error is caused by Equinix Fabric API returning an empty project `project: {}` in the JSON response for PDS user accounts * Adding temporary patch until Equinix Fabric API teams remove the empty project from the API response * Does affect request models as well, but the API will return the error that project is required for those requests. Will revert as soon as we can
* Equinix PDS users have different API responses that led to the following error: #657 * This adds tests and upgrades the version of equinix-sdk-go to account for the missing `projectId` property on `project` responses from the API
Hi @ctang10x , v1.36.4 has been released. You should be able to upgrade to that version without experiencing the same issue for your account. Please verify and I'll close this issue after receiving your response. |
@thogarty v1.36.4 has been updated. No issue seen. Thank you! |
Terraform Version
Terraform v1.5.7 on darwin_amd64
Equinix Provider Version
version = ">= 1.25.1"
Effected Terraform Resources
I was importing a resource for the AWS provider. When Terraform planned, I get this error for:
Error: no value given for required property projectId
with module.equinix-aws-connection-eqx1dx1.data.equinix_fabric_ports.aside_port
on .terraform/modules/equinix-aws-connection-eqx1dx1/modules/port-connection/main.tf line 1, in data "equinix_fabric_ports" "aside_port":
data "equinix_fabric_ports" "aside_port" {
I haven't changed anything ever since this AWS DX connection was implemented 2 months ago. Why all of a sudden I get this error?
Terraform Config Files
module "equinix-aws-connection-eqx1dx1" {
source = "equinix/fabric/equinix//modules/port-connection"
connection_name = var.connection_name_eqx1dx1
connection_type = var.connection_type
notifications_type = var.notifications_type
notifications_emails = ["infrastructure@10xgenomics.com"]
bandwidth = var.bandwidth
purchase_order_number = var.purchase_order_number
additional_info = local.additional_info
A-side
aside_port_name = var.aside_port_name_eqx1dx1
aside_vlan_tag = var.aside_vlan_tag_eqxdx1
#aside_vlan_inner_tag = var.aside_vlan_inner_tag
Z-side
zside_ap_type = var.zside_ap_type
zside_ap_authentication_key = var.zside_ap_authentication_key
zside_ap_profile_type = var.zside_ap_profile_type
zside_location = var.zside_location
zside_seller_region = var.zside_seller_region
zside_sp_name = var.zside_sp_name
}
Debug Output
No response
Panic Output
No response
Expected Behavior
Why does planning a AWS change give me an error for Equinix module?
Actual Behavior
Errored out on Equinix module
Steps to Reproduce
Make any change to Terraform code for AWS provider, Equinix module errors out during Terraform plan.
The text was updated successfully, but these errors were encountered: