service-principal

avinor/service-principal/azuread

Terraform Module HCL AZUREAD

Terraform module to create service principal credentials and assign it access to resources

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

Service Principal Module to create a service principal and assign it certain roles. This used to be terraform-azurerm-kubernetes-service-principal but is now made more generic so it can create any service principals. It will output the application id and password that can be used for input in other modules. 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. Usage Examples use tau. ``terraform module { source = "avinor/service-principal/azurerm" version = "1.0.0" } inputs { name = "simple-sp" end_date = "2020-01-01T00:00:00Z" assignments = [ { scope =

Inputs (3)
NameTypeDescriptionDefault
namestringName of the service principal. required
end_datestringThe End Date which the Password is valid until, formatted as a RFC3339 date stri required
assignmentslist(object({ scope = string, List of role assignments this service principal should have.[]
Outputs (3)
object_id — The object id of service principal. Can be used to assign roles to user.
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
Version2.1.0
Cloud AZUREAD
★ Stars8
Forks5
Total downloads5.5k
Inputs3
Outputs3
Resources5
Examples2
LicenseApache-2.0
Namespaceavinor
Updated