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
Description:
When running terraform plan on the castai-aks-cluster module, I encountered the following errors related to the azuread_application_password resource:
╷
│ Error: Missing required argument
│
│ on .terraform/modules/castai-aks-cluster/iam.tf line 93, in resource "azuread_application_password" "castai":
│ 93: resource "azuread_application_password" "castai" {
│
│ The argument "application_id" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│ on .terraform/modules/castai-aks-cluster/iam.tf line 94, in resource "azuread_application_password" "castai":
│ 94: application_object_id = azuread_application.castai.object_id
│
│ An argument named "application_object_id" is not expected here.
╵
Error: 'terraform plan' command failed. Exiting now.
make: *** [demo-interactive] Error 1
Expected Behavior:
The azuread_application_password resource should reference application_id rather than application_object_id. According to Terraform documentation, application_id is the required argument.
Steps to Reproduce:
1. Run terraform plan on a configuration that uses the castai-aks-cluster module.
2. Observe the errors related to the missing application_id argument and the unsupported application_object_id argument.
Proposed Solution:
In the file .terraform/modules/castai-aks-cluster/iam.tf, replace the application_object_id with application_id.
The corrected resource block should look like this:
Description:
When running terraform plan on the castai-aks-cluster module, I encountered the following errors related to the azuread_application_password resource:
Expected Behavior:
The azuread_application_password resource should reference application_id rather than application_object_id. According to Terraform documentation, application_id is the required argument.
Steps to Reproduce:
Proposed Solution:
In the file .terraform/modules/castai-aks-cluster/iam.tf, replace the application_object_id with application_id.
The corrected resource block should look like this:
https://github.com/castai/terraform-castai-aks/blob/main/iam.tf
The text was updated successfully, but these errors were encountered: