nutanix / terraform-provider-nutanix

Terraform Nutanix Provider
https://www.terraform.io/docs/providers/nutanix/
Mozilla Public License 2.0
95 stars 111 forks source link

Issues with nutanix_project and associating an ACP #684

Open aric49 opened 1 month ago

aric49 commented 1 month ago

Overall Issue:

When attempting to deploy a project with an acp block, the following error is getting returned during the terraform apply phase:

╷
 │ Error: error: {
 │   "api_version": "3.1",
 │   "code": 422,
 │   "message_list": [
 │     {
 │       "details": {
 │         "spec.access_control_policy_list.0.acp.resources.filter_list.context_list.1": [
 │           "'entity_filter_expression_list' is a required property"
 │         ]
 │       },
 │       "message": "Request could not be processed.",
 │       "reason": "INVALID_REQUEST"
 │     }
 │   ],
 │   "state": "ERROR"
 │ }
 │
 │   with module.shared.nutanix_project.project,
 │   on ..\..\..\modules\my-project\project.tf line 1, in resource "nutanix_project" "project":
 │    1: resource "nutanix_project" "project" {

The terraform plan phase runs as expected. The documentation does not specify if we need to include any other arguments into the ACP block in order for it deploy properly: https://registry.terraform.io/providers/nutanix/nutanix/latest/docs/resources/project#acp

Nutanix Cluster Information

Terraform Version

$ terraform -v
Terraform v1.4.6
on windows_amd64
+ provider registry.terraform.io/nutanix/nutanix v1.9.5

Your version of Terraform is out of date! The latest version
is 1.9.3. You can update by downloading from https://www.terraform.io/downloads.html

Affected Resource(s)


### Debug Output
<!---
Please provide a link to a GitHub Gist containing the complete debug output. Please do NOT paste the debug output in the issue; just paste a link to the Gist.
To obtain the debug output, see the [Terraform documentation on debugging](https://www.terraform.io/docs/internals/debugging.html).
--->
### Panic Output
<!--- If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the `crash.log`. --->
### Expected Behavior
<!--- What should have happened? --->
### Actual Behavior
<!--- What actually happened? --->
### Steps to Reproduce
<!--- Please list the steps required to reproduce the issue. --->
1. `terraform apply`
### Important Factors
<!--- Are there anything atypical about your accounts that we should know?
For example if you are using a Prism Element or Prism Central -- >
​
### References
<!---
Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests
Are there any other GitHub issues (open or closed) or pull requests that should be linked here? Vendor documentation? For example:
--->
* #0000 <!---Github Issue number --->