Code Monkey home page Code Monkey logo

terraform-aks's Introduction

terraform-aks's People

Contributors

sozercan avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

terraform-aks's Issues

Terraform AKS Error

I ran the example below, and I got this error every time:
When I create a cluster with the "az create..." command line works fine.
That happends to somebody else too?
Thanks.

Terraform Version
Terraform v0.11.7
provider.azurerm v1.5.0

Affected Resource(s)
azurerm_kubernetes_cluster

**AZ Command Line **
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 1 --generate-ssh-keys

Debug Output

`Error: Error applying plan:
1 error(s) occurred:
* azurerm_kubernetes_cluster.test: 1 error(s) occurred:
* azurerm_kubernetes_cluster.test: containerservice.ManagedClustersClient#CreateOrUpdate
: Failure sending request: StatusCode=400 -- Original Error: Code="" Message=""`

Terraform Configuration Files

resource "azurerm_resource_group" "akstest002523900909" {
  name     = "${var.terraform_azure_resource_group}"
  location = "${var.terraform_azure_region}"
}

resource "azurerm_kubernetes_cluster" "akstest002523900909" {
  name                = "akstest"
  location            = "${azurerm_resource_group.akstest002523900909.location}"
  resource_group_name = "${azurerm_resource_group.akstest002523900909.name}"
  dns_prefix          = "${azurerm_resource_group.akstest002523900909.name}"
  kubernetes_version  = "${var.terraform_aks_kubernetes_version}"

  linux_profile {
    admin_username = "${var.terraform_azure_admin_name}"

    ssh_key {
      key_data = "${var.terraform_azure_ssh_key}"
    }
  }

  agent_pool_profile {
    name    = "agentpool"
    count   = "${var.terraform_aks_agent_vm_count}"
    vm_size = "${var.terraform_aks_vm_size}"
  }

  service_principal {
    client_id     = "${var.terraform_azure_service_principal_client_id}"
    client_secret = "${var.terraform_azure_service_principal_client_secret}"
  }
}

Panic Output
None

Expected Behavior
A cluster creation

Actual Behavior
Just show this error

Error: Error applying plan:
1 error(s) occurred:
* azurerm_kubernetes_cluster.test: 1 error(s) occurred:
* azurerm_kubernetes_cluster.test: containerservice.ManagedClustersClient#CreateOrUpdate:
 Failure sending request: StatusCode=400 -- Original Error: Code="" Message=""

References
None

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.