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
.
Name | Version |
---|---|
terraform | >= 1.6.0 |
azuread | >= 2.49.1 |
azurerm | >= 3.103.1 |
random | >= 3.6.1 |
Name | Version |
---|---|
azuread | >= 2.49.1 |
azurerm | >= 3.103.1 |
random | >= 3.6.1 |
No modules.
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 |
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 |
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. |
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.