Git Product home page Git Product logo

terraform-az-aks's Introduction

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

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.