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
Error: creating Cluster: (Managed Cluster Name "" / Resource Group ""): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="HTTPProxyTrustedCAPEMDecodeFailure" Message="failed to decode HTTPProxyConfig.TrustedCA to PEM after base64 decoding."
│
│ with azurerm_kubernetes_cluster.example-aks,
│ on main.tf line 22, in resource "azurerm_kubernetes_cluster""example-aks":
│ 22: resource "azurerm_kubernetes_cluster""example-aks" {
Expected Behaviour
We are setting trusted_ca to null or omitting it altogether, in this case terraform should deploy the cluster and not generate an error related to certificate decoding when in fact we are not providing a cert.
Using the native Azure ARM templates the AKS cluster gets deployed with no issues, when setting trusted_ca = null or omitting it.
Actual Behaviour
When doing terraform apply, it generates an error:
Error: creating Cluster: (Managed Cluster Name "" / Resource Group ""): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="HTTPProxyTrustedCAPEMDecodeFailure" Message="failed to decode HTTPProxyConfig.TrustedCA to PEM after base64 decoding."
│
│ with azurerm_kubernetes_cluster.example-aks,
│ on main.tf line 22, in resource "azurerm_kubernetes_cluster" "example-aks":
│ 22: resource "azurerm_kubernetes_cluster" "example-aks" {
Steps to Reproduce
Have a resource group created in Azure
Update the sample tf provided with resource group name and aks name
Make sure you are logged in Azure subscription, az login
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Is there an existing issue for this?
Community Note
Terraform Version
1.1.7
AzureRM Provider Version
3.9.0
Affected Resource(s)/Data Source(s)
azurerm_kubernetes_cluster
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
We are setting trusted_ca to null or omitting it altogether, in this case terraform should deploy the cluster and not generate an error related to certificate decoding when in fact we are not providing a cert.
Using the native Azure ARM templates the AKS cluster gets deployed with no issues, when setting trusted_ca = null or omitting it.
Actual Behaviour
When doing terraform apply, it generates an error:
Error: creating Cluster: (Managed Cluster Name "" / Resource Group ""): containerservice.ManagedClustersClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="HTTPProxyTrustedCAPEMDecodeFailure" Message="failed to decode HTTPProxyConfig.TrustedCA to PEM after base64 decoding."
│
│ with azurerm_kubernetes_cluster.example-aks,
│ on main.tf line 22, in resource "azurerm_kubernetes_cluster" "example-aks":
│ 22: resource "azurerm_kubernetes_cluster" "example-aks" {
Steps to Reproduce
Important Factoids
No response
References
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster
The text was updated successfully, but these errors were encountered: