Open davidcodesido opened 2 weeks ago
try to run it with TF_LOG=trace and see if its using your vars for connection
How can I tell? What should it be saying?
Enviado desde Outlook para iOShttps://aka.ms/o0ukef
De: Alexander Chernov @.> Enviado: Wednesday, November 6, 2024 3:41:33 PM Para: alekc/terraform-provider-kubectl @.> Cc: David Codesido @.>; Author @.> Asunto: Re: [alekc/terraform-provider-kubectl] RESTMapper client error when applying (Issue #203)
try to run it with TF_LOG=trace and see if its using your vars for connection
— Reply to this email directly, view it on GitHubhttps://github.com/alekc/terraform-provider-kubectl/issues/203#issuecomment-2459934284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAE5MVO6WCJFISO5J57ITZ3Z7ITB3AVCNFSM6AAAAABRIWXUCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJZHEZTIMRYGQ. You are receiving this because you authored the thread.Message ID: @.***>
What I can tell is that those variables are properly displayed when I run terraform console. I can see the values of all of them if that helps.
Edit: This is extracted from the trace log:
2024-11-06T16:37:17.513+0100 [TRACE] (graphTransformerMulti) Completed graph transform *tofu.ProviderTransformer with new graph:
local.databases (expand) - *tofu.nodeExpandLocal
local.namespace_score (expand) - *tofu.nodeExpandLocal
local.namespace_underscore (expand) - *tofu.nodeExpandLocal
local.yaml_rg (expand) - *tofu.nodeExpandLocal
module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
module.database_mysql8_vault.mysql_user.users - *tofu.NodeValidatableResource
provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
module.database_mysql8_vault.var.cluster_vault_id (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault.var.resource_group_name (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault.var.server_name (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
provider["registry.opentofu.org/hashicorp/kubernetes"] - *tofu.NodeApplyableProvider
provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
provider["registry.opentofu.org/petoju/mysql"] - *tofu.NodeApplyableProvider
provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
var.administrator_password - *tofu.NodeRootVariable
var.administrator_username - *tofu.NodeRootVariable
var.aks_client_certificate - *tofu.NodeRootVariable
var.aks_client_key - *tofu.NodeRootVariable
var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
var.aks_host - *tofu.NodeRootVariable
var.aks_password - *tofu.NodeRootVariable
var.aks_secret_identity_id - *tofu.NodeRootVariable
var.aks_username - *tofu.NodeRootVariable
var.cluster_vault_id - *tofu.NodeRootVariable
var.database_server_fqdn - *tofu.NodeRootVariable
var.database_server_name - *tofu.NodeRootVariable
var.filename - *tofu.NodeRootVariable
var.namespace - *tofu.NodeRootVariable
var.project - *tofu.NodeRootVariable
var.repo_url - *tofu.NodeRootVariable
var.resource_group_name - *tofu.NodeRootVariable
var.subscription_id - *tofu.NodeRootVariable
[...]
2024-11-06T16:37:17.961+0100 [TRACE] Executing graph transform *tofu.TransitiveReductionTransformer
2024-11-06T16:37:17.962+0100 [TRACE] Completed graph transform *tofu.TransitiveReductionTransformer with new graph:
local.databases (expand) - *tofu.nodeExpandLocal
local.namespace_score (expand) - *tofu.nodeExpandLocal
local.namespace_underscore (expand) - *tofu.nodeExpandLocal
local.yaml_rg (expand) - *tofu.nodeExpandLocal
local.namespace_score (expand) - *tofu.nodeExpandLocal
var.namespace - *tofu.NodeRootVariable
local.namespace_underscore (expand) - *tofu.nodeExpandLocal
var.namespace - *tofu.NodeRootVariable
local.yaml_rg (expand) - *tofu.nodeExpandLocal
var.filename - *tofu.NodeRootVariable
module.database_mysql8_vault (close) - *tofu.nodeCloseModule
module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
local.databases (expand) - *tofu.nodeExpandLocal
module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
module.database_mysql8_vault.var.cluster_vault_id (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault.var.resource_group_name (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault.var.server_name (expand) - *tofu.nodeExpandModuleVariable
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
module.database_mysql8_vault.mysql_user.users - *tofu.NodeValidatableResource
module.database_mysql8_vault.mysql_user.users - *tofu.NodeValidatableResource
module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
module.database_mysql8_vault.var.cluster_vault_id (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
var.cluster_vault_id - *tofu.NodeRootVariable
module.database_mysql8_vault.var.database (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
module.database_mysql8_vault.var.resource_group_name (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
var.resource_group_name - *tofu.NodeRootVariable
module.database_mysql8_vault.var.server_name (expand) - *tofu.nodeExpandModuleVariable
module.database_mysql8_vault (expand) - *tofu.nodeValidateModule
var.database_server_name - *tofu.NodeRootVariable
module.keyvaultstorageclasses (close) - *tofu.nodeCloseModule
module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
var.aks_secret_identity_id - *tofu.NodeRootVariable
module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
local.databases (expand) - *tofu.nodeExpandLocal
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
var.namespace - *tofu.NodeRootVariable
module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
var.project - *tofu.NodeRootVariable
provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
var.aks_client_certificate - *tofu.NodeRootVariable
var.aks_client_key - *tofu.NodeRootVariable
var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
var.aks_host - *tofu.NodeRootVariable
var.aks_password - *tofu.NodeRootVariable
var.aks_username - *tofu.NodeRootVariable
provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
var.subscription_id - *tofu.NodeRootVariable
provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
var.administrator_password - *tofu.NodeRootVariable
var.administrator_username - *tofu.NodeRootVariable
var.database_server_fqdn - *tofu.NodeRootVariable
provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
root - *tofu.nodeCloseModule
module.database_mysql8_vault (close) - *tofu.nodeCloseModule
module.keyvaultstorageclasses (close) - *tofu.nodeCloseModule
provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
var.repo_url - *tofu.NodeRootVariable
var.administrator_password - *tofu.NodeRootVariable
var.administrator_username - *tofu.NodeRootVariable
var.aks_client_certificate - *tofu.NodeRootVariable
var.aks_client_key - *tofu.NodeRootVariable
var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
var.aks_host - *tofu.NodeRootVariable
var.aks_password - *tofu.NodeRootVariable
var.aks_secret_identity_id - *tofu.NodeRootVariable
var.aks_username - *tofu.NodeRootVariable
var.cluster_vault_id - *tofu.NodeRootVariable
var.database_server_fqdn - *tofu.NodeRootVariable
var.database_server_name - *tofu.NodeRootVariable
var.filename - *tofu.NodeRootVariable
var.namespace - *tofu.NodeRootVariable
var.project - *tofu.NodeRootVariable
var.repo_url - *tofu.NodeRootVariable
var.resource_group_name - *tofu.NodeRootVariable
var.subscription_id - *tofu.NodeRootVariable
------
2024-11-06T16:58:34.142+0100 [DEBUG] Starting graph walk: walkValidate
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.resource_group_name": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.administrator_password": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.database_server_fqdn": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.aks_client_key": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.namespace": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.database_server_name": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.aks_client_certificate": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.cluster_vault_id": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.filename": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.administrator_username": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "module.keyvaultstorageclasses (expand)": starting visit (*tofu.nodeValidateModule)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.project": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.146+0100 [TRACE] vertex "var.aks_username": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_host": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.repo_url": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_password": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_cluster_ca_certificate": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.subscription_id": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.aks_secret_identity_id": starting visit (*tofu.NodeRootVariable)
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.administrator_password
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.filename
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.database_server_name
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.namespace
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.aks_client_key
2024-11-06T16:58:34.147+0100 [TRACE] vertex "module.keyvaultstorageclasses (expand)": visit complete
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.administrator_username
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.database_server_fqdn
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.aks_client_certificate
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.administrator_password
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.database_server_fqdn
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.namespace
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.cluster_vault_id
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.cluster_vault_id
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.administrator_username
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_client_key
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.filename
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.resource_group_name
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.resource_group_name
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.database_server_name
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_client_certificate
2024-11-06T16:58:34.147+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.administrator_password
2024-11-06T16:58:34.147+0100 [TRACE] evalVariableValidations: no validation rules declared for var.administrator_password, so skipping
2024-11-06T16:58:34.147+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.database_server_fqdn
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.project
2024-11-06T16:58:34.147+0100 [TRACE] prepareFinalInputVariableValue: preparing var.project
2024-11-06T16:58:34.147+0100 [TRACE] evalVariableValidations: no validation rules declared for var.database_server_fqdn, so skipping
2024-11-06T16:58:34.147+0100 [TRACE] vertex "var.database_server_fqdn": visit complete
2024-11-06T16:58:34.147+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.namespace
2024-11-06T16:58:34.147+0100 [TRACE] NodeRootVariable: evaluating var.aks_username
2024-11-06T16:59:10.036+0100 [TRACE] evalVariableValidations: no validation rules declared for var.namespace, so skipping
2024-11-06T16:59:10.036+0100 [TRACE] vertex "var.administrator_password": visit complete
2024-11-06T16:59:10.036+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.cluster_vault_id
2024-11-06T16:59:10.036+0100 [TRACE] vertex "var.namespace": visit complete
2024-11-06T16:59:10.036+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.administrator_username
2024-11-06T16:59:10.036+0100 [TRACE] vertex "provider[\"registry.opentofu.org/hashicorp/random\"]": starting visit (*tofu.NodeApplyableProvider)
2024-11-06T16:59:10.036+0100 [TRACE] NodeRootVariable: evaluating var.aks_host
2024-11-06T16:59:10.036+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_host
2024-11-06T16:59:10.036+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_client_key
2024-11-06T16:59:10.036+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_client_key, so skipping
2024-11-06T16:59:10.036+0100 [TRACE] vertex "var.aks_client_key": visit complete
2024-11-06T16:59:10.036+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc" is waiting for "provider[\"registry.opentofu.org/alekc/kubectl\"]"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8 (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "root" is waiting for "provider[\"registry.opentofu.org/hashicorp/random\"] (close)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.namespace_score (expand)" is waiting for "var.namespace"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "local.namespace_underscore (expand)" is waiting for "var.namespace"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/random\"] (close)" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.random_password.dbpassword" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_user.users" is waiting for "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8" is waiting for "var.administrator_password"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.namespace (expand)" is waiting for "var.namespace"
2024-11-06T16:59:10.037+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_username
2024-11-06T16:59:10.037+0100 [TRACE] evalVariableValidations: no validation rules declared for var.cluster_vault_id, so skipping
2024-11-06T16:59:10.037+0100 [TRACE] vertex "var.cluster_vault_id": visit complete
2024-11-06T16:59:10.037+0100 [TRACE] NodeRootVariable: evaluating var.aks_password
2024-11-06T16:59:10.037+0100 [TRACE] evalVariableValidations: no validation rules declared for var.administrator_username, so skipping
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_password
2024-11-06T16:59:10.037+0100 [TRACE] NodeRootVariable: evaluating var.repo_url
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: preparing var.repo_url
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: var.filename has a default value
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_score (expand)": starting visit (*tofu.nodeExpandLocal)
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_score (expand)": expanding dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] Expanding local: adding local.namespace_score as *tofu.NodeLocal
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_underscore (expand)": starting visit (*tofu.nodeExpandLocal)
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_underscore (expand)": expanding dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_score (expand)": entering dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] Expanding local: adding local.namespace_underscore as *tofu.NodeLocal
2024-11-06T16:59:10.037+0100 [TRACE] vertex "var.administrator_username": visit complete
2024-11-06T16:59:10.037+0100 [TRACE] vertex "local.namespace_underscore (expand)": entering dynamic subgraph
2024-11-06T16:59:10.037+0100 [TRACE] prepareFinalInputVariableValue: var.repo_url has a default value
2024-11-06T16:59:10.037+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.resource_group_name
2024-11-06T16:59:10.037+0100 [TRACE] evalVariableValidations: no validation rules declared for var.resource_group_name, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.resource_group_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8": starting visit (*tofu.NodeApplyableProvider)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.database_server_name
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_underscore": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_score": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.random_password.dbpassword" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc" is waiting for "provider[\"registry.opentofu.org/alekc/kubectl\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "provider[\"registry.opentofu.org/hashicorp/random\"] (close)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_user.users" is waiting for "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/random\"] (close)" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8 (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_underscore"
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: var.subscription_id has a default value
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": expanding dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": entering dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.database_server_name, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.database_server_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_client_certificate
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.project
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_client_certificate, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_host
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_host, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_host": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.project, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_username
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_username, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_username": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace": starting visit (*tofu.nodeModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_password
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.project": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_password, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_password": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_client_certificate": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T17:00:43.144+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.filename
2024-11-06T16:59:56.909+0100 [DEBUG] created provider logger: level=trace
2024-11-06T17:00:43.145+0100 [INFO] provider: configuring client automatic mTLS
2024-11-06T17:00:43.144+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": expanding dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] nodeModuleVariable: evaluating module.keyvaultstorageclasses.var.namespace
2024-11-06T17:00:43.145+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": entering dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
ESCOD
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.resource_group_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8": starting visit (*tofu.NodeApplyableProvider)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.database_server_name
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_underscore": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_score": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.random_password.dbpassword" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc" is waiting for "provider[\"registry.opentofu.org/alekc/kubectl\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "provider[\"registry.opentofu.org/hashicorp/random\"] (close)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_user.users" is waiting for "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/random\"] (close)" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/petoju/mysql\"].mysql8 (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_underscore"
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.subscription_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: var.subscription_id has a default value
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_cluster_ca_certificate
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": expanding dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace (expand)": entering dynamic subgraph
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.database_server_name, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.database_server_name": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_client_certificate
2024-11-06T16:59:56.908+0100 [TRACE] NodeRootVariable: evaluating var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] prepareFinalInputVariableValue: preparing var.aks_secret_identity_id
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.project
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_client_certificate, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_host
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_host, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_host": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.project, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_username
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_username, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_username": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.namespace": starting visit (*tofu.nodeModuleVariable)
2024-11-06T16:59:56.908+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.aks_password
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.project": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] evalVariableValidations: no validation rules declared for var.aks_password, so skipping
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_password": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "var.aks_client_certificate": visit complete
2024-11-06T16:59:56.908+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": starting visit (*tofu.nodeExpandModuleVariable)
2024-11-06T17:00:43.144+0100 [TRACE] BuiltinEvalContext: Storing final value for variable var.filename
2024-11-06T16:59:56.909+0100 [DEBUG] created provider logger: level=trace
2024-11-06T17:00:43.145+0100 [INFO] provider: configuring client automatic mTLS
2024-11-06T17:00:43.144+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": expanding dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] nodeModuleVariable: evaluating module.keyvaultstorageclasses.var.namespace
2024-11-06T17:00:43.145+0100 [TRACE] vertex "module.keyvaultstorageclasses.var.project (expand)": entering dynamic subgraph
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "root" is waiting for "local.namespace_score"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "root" is waiting for "module.keyvaultstorageclasses.var.namespace"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T17:00:43.145+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
ESCOD
2024-11-06T16:59:56.908+0100 [TRACE] vertex "local.namespace_score": starting visit (*tofu.NodeLocal)
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"] (close)" is waiting for "module.keyvaultstorageclasses.data.azurerm_client_config.current"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.databases (expand)" is waiting for "local.databases (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.server_name (expand)" is waiting for "var.database_server_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.database (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.mysql_grant.grant" is waiting for "module.database_mysql8_vault.mysql_user.users"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.databases (expand)" is waiting for "local.yaml_rg (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"]" is waiting for "var.aks_client_certificate"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.data.azurerm_client_config.current" is waiting for "provider[\"registry.opentofu.org/hashicorp/azurerm\"]"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault (close)" is waiting for "module.database_mysql8_vault.mysql_grant.grant"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "local.yaml_rg (expand)" is waiting for "var.filename"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/hashicorp/azurerm\"]" is waiting for "var.subscription_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.resource_group_name (expand)" is waiting for "var.resource_group_name"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_key_vault_secret.database_password" is waiting for "module.database_mysql8_vault.random_password.dbpassword"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "provider[\"registry.opentofu.org/alekc/kubectl\"] (close)" is waiting for "module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.azurerm_mysql_flexible_database.databases" is waiting for "module.database_mysql8_vault.var.database (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.database_mysql8_vault.var.cluster_vault_id (expand)" is waiting for "module.database_mysql8_vault (expand)"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.aks_secret_identity_id (expand)" is waiting for "var.aks_secret_identity_id"
2024-11-06T16:59:56.908+0100 [TRACE] dag/walk: vertex "module.keyvaultstorageclasses.var.project (expand)" is waiting for "var.project"
module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
module.keyvaultstorageclasses.var.aks_secret_identity_id (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
var.aks_secret_identity_id - *tofu.NodeRootVariable
module.keyvaultstorageclasses.var.databases (expand) - *tofu.nodeExpandModuleVariable
local.databases (expand) - *tofu.nodeExpandLocal
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
module.keyvaultstorageclasses.var.namespace (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
var.namespace - *tofu.NodeRootVariable
module.keyvaultstorageclasses.var.project (expand) - *tofu.nodeExpandModuleVariable
module.keyvaultstorageclasses (expand) - *tofu.nodeValidateModule
var.project - *tofu.NodeRootVariable
provider["registry.opentofu.org/alekc/kubectl"] - *tofu.NodeApplyableProvider
var.aks_client_certificate - *tofu.NodeRootVariable
var.aks_client_key - *tofu.NodeRootVariable
var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
var.aks_host - *tofu.NodeRootVariable
var.aks_password - *tofu.NodeRootVariable
var.aks_username - *tofu.NodeRootVariable
provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
module.keyvaultstorageclasses.kubectl_manifest.vault-db-spc - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/azurerm"] - *tofu.NodeApplyableProvider
var.subscription_id - *tofu.NodeRootVariable
provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
module.database_mysql8_vault.azurerm_key_vault_secret.database_password - *tofu.NodeValidatableResource
module.database_mysql8_vault.azurerm_mysql_flexible_database.databases - *tofu.NodeValidatableResource
module.keyvaultstorageclasses.data.azurerm_client_config.current - *tofu.NodeValidatableResource
provider["registry.opentofu.org/hashicorp/random"] - *tofu.NodeApplyableProvider
provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
module.database_mysql8_vault.random_password.dbpassword - *tofu.NodeValidatableResource
provider["registry.opentofu.org/petoju/mysql"].mysql8 - *tofu.NodeApplyableProvider
var.administrator_password - *tofu.NodeRootVariable
var.administrator_username - *tofu.NodeRootVariable
var.database_server_fqdn - *tofu.NodeRootVariable
provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
module.database_mysql8_vault.mysql_grant.grant - *tofu.NodeValidatableResource
root - *tofu.nodeCloseModule
module.database_mysql8_vault (close) - *tofu.nodeCloseModule
module.keyvaultstorageclasses (close) - *tofu.nodeCloseModule
provider["registry.opentofu.org/alekc/kubectl"] (close) - *tofu.graphNodeCloseProvider
provider["registry.opentofu.org/hashicorp/azurerm"] (close) - *tofu.graphNodeCloseProvider
provider["registry.opentofu.org/hashicorp/random"] (close) - *tofu.graphNodeCloseProvider
provider["registry.opentofu.org/petoju/mysql"].mysql8 (close) - *tofu.graphNodeCloseProvider
var.repo_url - *tofu.NodeRootVariable
var.administrator_password - *tofu.NodeRootVariable
var.administrator_username - *tofu.NodeRootVariable
var.aks_client_certificate - *tofu.NodeRootVariable
var.aks_client_key - *tofu.NodeRootVariable
var.aks_cluster_ca_certificate - *tofu.NodeRootVariable
var.aks_host - *tofu.NodeRootVariable
var.aks_password - *tofu.NodeRootVariable
var.aks_secret_identity_id - *tofu.NodeRootVariable
var.aks_username - *tofu.NodeRootVariable
var.cluster_vault_id - *tofu.NodeRootVariable
var.database_server_fqdn - *tofu.NodeRootVariable
var.database_server_name - *tofu.NodeRootVariable
var.filename - *tofu.NodeRootVariable
var.namespace - *tofu.NodeRootVariable
var.project - *tofu.NodeRootVariable
var.repo_url - *tofu.NodeRootVariable
var.resource_group_name - *tofu.NodeRootVariable
var.subscription_id - *tofu.NodeRootVariable
I guess they are there :|
I've been struggling to get a connection with an AKS cluster that is already created. I'm using the terraform outputs of the resources creating the cluster as input variables for the provider in another set of resources to create some manifests. This is becoming an excruciating task. Tried hashicorp/kubernetes, gavin's kubectl and this provider. All with no success. Now I'm stuck on this error:
╷ │ Error: Failed to get RESTMapper client │ │ cannot create discovery client: no client config
The provider config looks like:
And that module does this:
Any idea what might be going on there?