flavius-dinu / terraform-az-aks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure AKS Module

Workflows

In this repository there are 3 github actions workflows:

  • auto_tag.yaml
    • this workflow will run whenever a merge to the main branch occurs
    • it will by default tag your repository with a Patch bump (version format is: vMajor.Minor.Patch)
    • if you want to bump the major or the minor version of the repository, you will simply have to start your commit with #major or #minor
  • pre_commit.yaml
    • this workflow will run on every push in order to check: tflint, tf-docs, validate, fmt, end-of-file fixer and trailing whitspace fixes and whatever else you decide to add to the .pre-commit-config.yaml file
  • terraform.yaml
    • this workflow can be run manually based on an operation you provide (plan, apply, destroy)
    • it is recommended to use remote state in order to take advantage of this

Installing pre-commit locally

In order to make sure that you are writing code that respects industry standards, you will need to install:

After you install all of these, you can go to the root directory of the repository and run:

pre-commit run --all-files

This will fix all the problems related to the hooks mentioned above.

Module

Requirements

Name Version
terraform >= 1.3.0
azurerm >= 3.15.0
local >= 2.2.0

Providers

Name Version
azurerm 3.38.0
local 2.2.3

Modules

No modules.

Resources

Name Type
azurerm_kubernetes_cluster.this resource
local_file.kube_config resource

Inputs

Name Description Type Default Required
kube_params AKS params
map(object({
name = string
rg_name = string
rg_location = string
dns_prefix = string
client_id = optional(string, null)
client_secret = optional(string, null)
vm_size = optional(string, "Standard_DS2_v2")
enable_auto_scaling = optional(string, true)
max_count = optional(number, 1)
min_count = optional(number, 1)
node_count = optional(number, 1)
np_name = string
service_principal = optional(list(object({
client_id = optional(string, null)
client_secret = optional(string, null)
})), [])
identity = optional(list(object({
type = optional(string, "SystemAssigned")
identity_ids = optional(list(string), [])
})), [])
kubeconfig_path = optional(string, "~./kube/config")
}))
n/a yes
tags Global tags to apply to the resources map(string) {} no

Outputs

Name Description
kube_config n/a
kube_config_path n/a
kube_params n/a

About


Languages

Language:HCL 100.0%