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 run_command_enabled #451

Closed
1 task done
tanvp112 opened this issue Oct 10, 2023 · 2 comments · Fixed by #452
Closed
1 task done

Support for run_command_enabled #451

tanvp112 opened this issue Oct 10, 2023 · 2 comments · Fixed by #452

Comments

@tanvp112
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

Please expose this argument in order to disable run command for the cluster. Currently, this is default to "true" and not changeable via the module.

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

azurerm_kubernetes_cluster

Potential Terraform Configuration

variable "run_command_enabled" {
  type        = bool
  default     = true
  description = "Enable run command for the cluster"
}

References

N/A

@zioproto
Copy link
Collaborator

The feature is GA:
https://learn.microsoft.com/en-us/azure/aks/access-private-cluster?tabs=azure-cli

Interesting that this is enabled by default both in the Azure Portal and Az-Cli and there is no easy way to disable.

A workaround for az-cli is:

az resource update --id aks-resource-id --set apiServerAccessProfile.disableRunCommand=false

The Terraform provider implements this:
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/kubernetes_cluster#run_command_enabled

@tanvp112
Copy link
Author

Many thanks for the quick resolution! Hopefully your change will get merge and release the soonest.

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

Successfully merging a pull request may close this issue.

2 participants