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

azurerm_kubernetes_cluster Creates Resources with Incorrect Resource Group Name #879

Closed
krikork opened this issue Feb 23, 2018 · 3 comments

Comments

@krikork
Copy link

krikork commented Feb 23, 2018

Creating an azurerm_kubernetes_cluster in Terraform provisions a number of resources but most of them disobey the value provided in field resource_group_name.

My tf file looks like this:
resource "azurerm_kubernetes_cluster" "container_service" {
name = "${var.container_service_name}"
location = "${var.resource_group_location}"
resource_group_name = "${var.resource_group_name}"
kubernetes_version = "1.8.2"
dns_prefix = "${var.dns_name_prefix}"
...

Where var.resource_group_name is "k8s".

The result is that resources get created in Azure but most of them get a resource group name of "MC_k8s_k8s-containerservice_eastus" instead of the expected "k8s". Only the Container service resource has the expected resource group name of "k8s".

This causes a problem if someone wants to locate the resources for further configuration.

@Stavrus
Copy link
Contributor

Stavrus commented Feb 23, 2018

I came across this as well, but it's not an issue with the Terraform provider. See Azure/AKS#3

@krikork
Copy link
Author

krikork commented Feb 24, 2018

Thanks!

@krikork krikork closed this as completed Feb 24, 2018
@ghost
Copy link

ghost commented Mar 31, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants