Skip to content

An opinionated Terraform module that can be used to manage an Azure AD service principal. The main goal is to mimic `az ad sp create-for-rbac`.

License

Notifications You must be signed in to change notification settings

isovalent/terraform-azure-service-principal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-azure-service-principal

An opinionated Terraform module that can be used to manage an Azure AD service principal. The main goal is to mimic az ad sp create-for-rbac.

Requirements

Name Version
terraform >= 1.6.0
azuread >= 2.49.1
azurerm >= 3.103.1
random >= 3.6.1

Providers

Name Version
azuread >= 2.49.1
azurerm >= 3.103.1
random >= 3.6.1

Modules

No modules.

Resources

Name Type
azuread_application.main resource
azuread_application_password.main resource
azuread_service_principal.main resource
azurerm_role_assignment.main resource
random_id.main resource
azuread_client_config.main data source
azurerm_subscription.main data source

Inputs

Name Description Type Default Required
application_name The name to give to the Azure AD application that will be created and associated with the Azure AD service principal. string n/a yes
role The role to grant to the Azure AD service principal. string "Contributor" no

Outputs

Name Description
client_id The client ID of the Azure AD service principal.
client_secret The client secret of the Azure AD service principal.
display_name The display name of the Azure AD service principal.
id The ID of the Azure AD service principal.

License

Copyright 2022 Isovalent, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

An opinionated Terraform module that can be used to manage an Azure AD service principal. The main goal is to mimic `az ad sp create-for-rbac`.

Resources

License

Stars

Watchers

Forks

Packages

No packages published