kubernetes-service-principal

avinor/kubernetes-service-principal/azurerm

Terraform Module HCL AZURERM

Terraform module to create service principal credentials and assign access for AKS

Install
module "kubernetes-service-principal" {
source = "avinor/kubernetes-service-principal/azurerm"
version = "1.0.0"
}
plain text: /constructs/tfmod-avinor-kubernetes-service-principal-azurerm/install.txt
⭐ Source on GitHub 📦 Registry page
README

Kubernetes Service Principal A complementary module to Kubernetes (AKS) module to create the service principal and assign roles required. It will output the application id and password required as input parameters to avinor/kubernetes/azurerm module. This module requires elevated access to be able to create the application in AzureAD and assign roles to resources. It is therefore not recommended to be run as any CI/CD pipeline, but instead manually before running any automated process. The output can still be used by reading remote state. Accesses are based on Microsoft documentation. Usage Examples use tau. ``terraform module { source = "avinor/kubernetes-service-principal/azurerm" version = "1.0.0" } inputs { name = "aks-sp" end_date = "2020-01-01T00:00:00Z" subnet_id = [ "/subscriptions

Inputs (5)
NameTypeDescriptionDefault
namestringName of the service principal. required
end_datestringThe End Date which the Password is valid until, formatted as a RFC3339 date stri required
acr_idstringId of Azure Container Registry to grant access to. required
subnet_idlist(string)List of ids of virtual network subnet to grant Network Contributer access to if []
storage_idlist(string)List of storage account ids to grant Storage Account Contributor access to.[]
Outputs (2)
client_id — The application id of AzureAD application created.
client_secret — Password for service principal.
Resources (5)
azuread_applicationazuread_service_principalazuread_service_principal_passwordazurerm_role_assignmentrandom_string
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud AZURERM
★ Stars8
Forks5
Total downloads5.8k
Inputs5
Outputs2
Resources5
LicenseApache-2.0
Namespaceavinor
Updated