azuread-groups

devops-rob/azuread-groups/vault

Terraform Module HCL VAULT

This module is designed to read all Azure Active Directory (AAD) groups in an Azure Tenant, and create external identity groups in HashiCorp Vault and Group aliases that tie these all together.

Install
module "azuread-groups" {
source = "devops-rob/azuread-groups/vault"
version = "0.1.3"
}
plain text: /constructs/tfmod-devops-rob-azuread-groups-vault/install.txt
⭐ Source on GitHub 📦 Registry page
README

Azure Active Directory Groups to Vault External Identity Groups This module is designed to read all Azure Active Directory (AAD) groups in an Azure Tenant, and create external identity groups in HashiCorp Vault and Group aliases that tie these all together. AAD groups can be filtered to only create HashiCorp Vault External groups for Security-enabled AAD groups or Mail-enabled AAD groups. For the best results, this module should be run on an automated CICD pipeline and regular intervals to ensure changes in AAD groups are quickly replicated to HashiCorp Vault. Example Usage All Groups ``hcl terraform { required_providers { azuread = { source = "hashicorp/azuread" version = "~> 2.10.0" } } } provider "vault" { address = "http://localhost:8200" token = var.vault_token } provider "azuread" {}

Inputs (4)
NameTypeDescriptionDefault
security_enabledboolDetermines whether mapped Azure groups should be security enabled. Set to true i required
policieslist(string)A list of HashiCorp Vault policies to attach to Azure Groups. required
mail_enabledboolDetermines whether mapped Azure groups should be mailed enabled. Set to true if required
auth_methodstringThe path of the auth method to attach the group alias to. Default to 'token'."token"
Outputs (1)
azure_groups_map — Map of Azure AD group names to Object IDs.
Resources (2)
vault_identity_groupvault_identity_group_alias
Details
FrameworkTerraform Module
LanguageHCL
Version0.1.3
Cloud VAULT
★ Stars3
Forks3
Total downloads822
Inputs4
Outputs1
Resources2
LicenseApache-2.0
Namespacedevops-rob
Updated