Skip to content
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

Support for cost analysis add-on [azurerm_kubernetes_cluster] #528

Open
1 task done
fabio-s-franco opened this issue Mar 25, 2024 · 9 comments
Open
1 task done

Comments

@fabio-s-franco
Copy link

fabio-s-franco commented Mar 25, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Description

GA for AKS cost analysis has been announced, it would be nice to have that in the cluster resource for the provider.

According to the documentation it is just a flag to enable or disable it via CLI. I am not sure how that translates to the API though as I didn't immediately find it.

New or Affected Resource(s)/Data Source(s)

azurerm_kubernetes_cluster

Potential Terraform Configuration

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_kubernetes_cluster" "example" {
  name                = "example-aks1"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  enable_cost_analysis = true ### Enables Azure Cost Analysis for AKS (defaults to false)

  default_node_pool {
    name       = "default"
    node_count = 1
    vm_size    = "Standard_D2_v2"
  }

  identity {
    type = "SystemAssigned"
  }
}

References

No response

@fabio-s-franco fabio-s-franco changed the title Support for cost analysis add-on Support for cost analysis add-on [azurerm_kubernetes_cluster] Mar 25, 2024
@zioproto
Copy link
Collaborator

zioproto commented Mar 25, 2024

@zioproto
Copy link
Collaborator

Status: waiting on Terraform provider feature: hashicorp/terraform-provider-azurerm#23982

@fabio-s-franco
Copy link
Author

Ooops, thanks for letting me know @zioproto , copy past problem. I will fix it now

@fabio-s-franco
Copy link
Author

I could swear that I searched for this issue and couldn't find it. Should I close this one?

@zioproto
Copy link
Collaborator

I could swear that I searched for this issue and couldn't find it. Should I close this one?

Please keep this issue open. Here we track the Terraform module support. The other issue is for the Terraform provider support. Thanks

@danielkwok72
Copy link

Hi, is there an ETA when the this feature will be added to the next azurerm provider release?

@zioproto
Copy link
Collaborator

Hi, is there an ETA when the this feature will be added to the next azurerm provider release?

Please follow this issue hashicorp/terraform-provider-azurerm#23982

@ms-henglu is working on this, and will link the PR implementing that feature on that GitHub issue. I don't have an update on the ETA yet.

@zioproto
Copy link
Collaborator

Product is GA:
https://azure.microsoft.com/en-gb/updates/generally-available-cost-analysis-addon-for-aks/
https://azure.microsoft.com/en-us/updates/ga-aks-cost-views-2/

As documented in:
hashicorp/terraform-provider-azurerm#26052
It will require minimum provider version v3.106.0

@led94
Copy link

led94 commented Jul 17, 2024

Hi, is there an ETA when the this feature will be added to the next azurerm provider release?

Please follow this issue hashicorp/terraform-provider-azurerm#23982

@ms-henglu is working on this, and will link the PR implementing that feature on that GitHub issue. I don't have an update on the ETA yet.

Hi, do you have any updates of the feature? The other post, hashicorp/terraform-provider-azurerm#23982, seems that was closed automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

4 participants