{"id":18363457,"url":"https://github.com/stuttgart-things/aks-cluster","last_synced_at":"2026-01-23T03:49:14.151Z","repository":{"id":166294273,"uuid":"641378132","full_name":"stuttgart-things/aks-cluster","owner":"stuttgart-things","description":"terraform module for creating virtual machines in azure","archived":false,"fork":false,"pushed_at":"2023-05-16T12:52:02.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-10T10:55:42.700Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stuttgart-things.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-16T10:49:07.000Z","updated_at":"2023-05-17T05:19:23.000Z","dependencies_parsed_at":"2023-06-09T01:15:14.455Z","dependency_job_id":null,"html_url":"https://github.com/stuttgart-things/aks-cluster","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stuttgart-things/aks-cluster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faks-cluster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faks-cluster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faks-cluster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faks-cluster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stuttgart-things","download_url":"https://codeload.github.com/stuttgart-things/aks-cluster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stuttgart-things%2Faks-cluster/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28679349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T23:06:37.063Z","updated_at":"2026-01-23T03:49:14.135Z","avatar_url":"https://github.com/stuttgart-things.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# stuttgart-things/azure-vm\n\nterraform module for creating virtual machines in azure\n\n## Requirements and Dependencies:\n- [Terraform](https://www.terraform.io/downloads.html) 1.3.9 or greater\n\n## Requirements for terraform in Azure\n```\ncurl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash\naz login --use-device-code\naz account show\n\n# create service-principal for terraform w/ contributor role\naz ad sp create-for-rbac --role=\"Contributor\" \\\n--scopes=\"/subscriptions/\u003cREPLACE-WITH-YOURS\u003e\"\n\n#appId is the client_id defined above.\n#password is the client_secret defined above.\n#tenant is the tenant_id defined above.\n\n# test login\naz login --service-principal -u CLIENT_ID -p CLIENT_SECRET --tenant TENANT_ID\n```\n## Example to use this terraform module\n\nThe following is an example of *main.tf*.  Create the file and modify the variables with the desired values.\n\n```\nmodule \"aks-cluster\" {\n    source = \"git::https://codehub.sva.de/Lab/stuttgart-things/kubernetes/aks-cluster.git\"\n    #source = \"../aks-cluster\"\n    \n    client_id       = var.client_id\n    client_secret   = var.client_secret\n    \n    resource_group_name = \"rg_aks\"\n    location = \"germanywestcentral\"\n    environment = \"Demo\" \n\n    aks_name = \"aks-cluster\"\n    node_count = 2\n    vm_size = \"Standard_B2s\"\n    os_disk_size_gb = 30\n}\n\nresource \"local_file\" \"kube_config\" {\n  content  = module.aks-cluster.kube_config\n  filename = \"${path.root}/kubeconfig\"\n}\n\n```\nThe following is an example of *provider.tf*.  Create the file and modify the variables with the desired values.\n\n```\nterraform {\n  required_providers {\n    azurerm = {\n      source  = \"hashicorp/azurerm\"\n      version = \"\u003e=3.37.0\"\n    }\n    kubernetes = {\n      source  = \"hashicorp/kubernetes\"\n      version = \"\u003e= 2.0.3\"\n    }\n  }\n  \n  required_version = \"\u003e=1.3.7\"\n}\n\nprovider \"azurerm\" {\n  features {}\n\n  client_id       = var.client_id\n  client_secret   = var.client_secret\n  tenant_id       = var.tenant_id\n  subscription_id = var.subscription_id\n\n}\n\n```\n\nThe following is an example of *variables.tf*.  Create the file and modify the variables with the desired values.\n\n```\n variable \"client_id\" {\n  default     = false\n  description = \"\"\n}\n\nvariable \"client_secret\" {\n  default     = false\n  description = \"\"\n}\n\nvariable \"tenant_id\" {\n  default     =  false\n  description = \"\"\n}\n\nvariable \"subscription_id\" {\n  default     = false\n  description = \"\"\n}\n\n```\n## Outputs\n - `kubeconfig` file - A file will be created with the k8s configuration\n\n\nRun terraform init to download the module\n\n```\nterraform init \\\n-var=\"subscription_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_secret=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"tenant_id=\u003cREPLACE-WITH-YOURS\u003e\"\n```\n\nApply to create the tf ressources in azure\n\n```\nterraform plan \\\n-var=\"subscription_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_secret=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"tenant_id=\u003cREPLACE-WITH-YOURS\u003e\"\n\nterraform apply \\\n-var=\"subscription_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_secret=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"tenant_id=\u003cREPLACE-WITH-YOURS\u003e\"\n```\n\nTo delete the tf managed resources run destroy\n\n```\nterraform destroy \\\n-var=\"subscription_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_id=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"client_secret=\u003cREPLACE-WITH-YOURS\u003e\" \\\n-var=\"tenant_id=\u003cREPLACE-WITH-YOURS\u003e\"\n```\n\n## Version:\n```\nDATE           WHO              WHAT\n2023-03-06     Ana C. Calva     AKS Cluster Module\n```\n\nAuthor Information\n------------------\n\nAna C. Calva; 03/2023; SVA GmbH\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Faks-cluster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstuttgart-things%2Faks-cluster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstuttgart-things%2Faks-cluster/lists"}