{"id":30743471,"url":"https://github.com/ukho/tfmodule-azure-keyvault-aac","last_synced_at":"2026-02-11T07:33:08.792Z","repository":{"id":283670063,"uuid":"952448457","full_name":"UKHO/tfmodule-azure-keyvault-aac","owner":"UKHO","description":"Terraform Module for KeyVault and Azure App Config","archived":false,"fork":false,"pushed_at":"2025-08-04T11:05:23.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-04T14:11:18.616Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UKHO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-03-21T09:47:46.000Z","updated_at":"2025-08-04T11:03:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb57cf0c-919f-40fc-bff3-7fa2ac5ced7f","html_url":"https://github.com/UKHO/tfmodule-azure-keyvault-aac","commit_stats":null,"previous_names":["ukho/tfmodule-azure-keyvault-aac"],"tags_count":5,"template":false,"template_full_name":"UKHO/terraform-module-template","purl":"pkg:github/UKHO/tfmodule-azure-keyvault-aac","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-azure-keyvault-aac","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-azure-keyvault-aac/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-azure-keyvault-aac/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-azure-keyvault-aac/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UKHO","download_url":"https://codeload.github.com/UKHO/tfmodule-azure-keyvault-aac/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UKHO%2Ftfmodule-azure-keyvault-aac/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273539317,"owners_count":25123499,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-04T02:07:29.656Z","updated_at":"2026-02-11T07:33:08.787Z","avatar_url":"https://github.com/UKHO.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Module: for Azure Key Vault and App Config (with key value pairs)\n\n##\n\n## Required Resources\n\n- `Resource Group` exists or is created external to the module.\n- `Provider` must be created external to the module.\n\n## Usage\n\n```terraform\n# Azure Key Vault and Azure App Config\n\n## Usage Vars\n\nvariable \"resource_group_name\" {\n  description = \"Name of the resource group\"\n  type        = string\n}\n\nvariable \"location\" {\n  description = \"Azure region\"\n  type        = string\n}\n\nvariable \"keyvault_name\" {\n  description = \"Name of the Key Vault\"\n  type        = string\n}\n\nvariable \"tenant_id\" {\n  description = \"Azure Tenant ID\"\n  type        = string\n}\n\nvariable \"subscription_id\" {\n  description = \"Azure Subscription ID. If not supplied then ARM_SUBSCRIPTION_ID environment variable must be set\"\n  type        = string\n  default     = null\n}\n\nvariable \"principal_id\" {\n  description = \"The object id of the terraform principal (Optional). If not supplied then data.azurerm_client_config.current.object_id will be used\"\n  type        = string\n  default     = null\n}\n\nvariable \"enable_rbac\" {\n  description = \"Enable RBAC authorization for Key Vault\"\n  type        = bool\n  default     = false\n}\n\nvariable \"appconfig_name\" {\n  description = \"Name of the App Configuration\"\n  type        = string\n}\n\nvariable \"kv_sku\" {\n  description = \"Sku of the key vault\"\n  type        = string\n}\n\nvariable \"tags\" {\n  description = \"Tags for the resources\"\n  type        = map(string)\n}\n\nvariable \"ip_rules\" {\n  description = \"List of IP addresses that are allowed to access the key vault\"\n  type        = list(string)\n}\n\nvariable \"subnet_ids\" {\n  description = \"List of subnet IDs that are allowed to access the key vault\"\n  type        = list(string)\n  \n}\n\nvariable \"aac_sku\" {\n  description = \"Sku of the App Config\"\n  type        = string\n}\n\nvariable \"secrets\" {\n  description = \"Map of Key Vault secrets (name → object) that should be created. Each object must have 'value' and 'content_type'.\"\n  type        = map(object({\n    value        = string\n    content_type = string\n  }))\n  default     = {}\n}\n\nvariable \"items\" {\n  description = \"Map of configuration items (name → value) that should be created. If keys have '__', these will be converted to ':' for aac namespacing\"\n  type        = map(string)\n  default     = {}\n}\n\n# PE\n\nvariable \"pe_enabled\" {\n  description = \"Enable private endpoint\"\n  type        = bool\n  default     = false\n}\n\nvariable \"pe_environment\" {\n  description = \"environment for private endpoint (for example dev | prd | qa | pre)\"\n  default     = \"\"\n}\n\nvariable \"pe_subnet_name\" {\n  description = \"subnet name that the private endpoint will associate\"\n  default     = \"\"\n}\n\nvariable \"dns_resource_group_name\" {\n  description = \"dns resource group name, please change domain-rg to either business-rg or engineering-rg\"\n  default     = \"\"\n}\n\nvariable \"hub_subscription_id\" {\n  description = \"Azure Subscription ID for Hub\"\n  type        = string\n  default     = null\n}\n\nvariable \"vnet_name\" {\n  type    = string\n  default = \"\"\n}\n\nvariable \"vnet_resource_group_name\" {\n  type    = string\n  default = \"m-spokeconfig-rg\"\n}\n\n\nExample usage: \n\nmodule \"keyvault_appconfig\" {\n  source              = \"github.com/UKHO/terraform-azure-keyvault-appconfig\"\n  resource_group_name = local.rg\n  location            = local.location\n  keyvault_name       = local.kv_name\n  tenant_id           = local.tenant_id\n  subscription_id     = var.subscription_id\n  principal_id        = data.azuread_service_principal.terraform.object_id # or data.azurerm_client_config.current.object_id\n  enable_rbac         = false\n  kv_sku              = local.kv_sku\n  ip_rules            = local.ip_rules\n  subnet_ids          = local.subnet_ids\n  appconfig_name      = local.aac_name\n  aac_sku             = local.aac_sku\n  tags                = local.tags\n  secrets = {\n    \"DatabasePassword\" = {\n      value        = \"var.secret\"\n      content_type = \"text/plain\"\n    }\n    \"StorageKey\" = {\n      value        = \"var.storage_key\"\n      content_type = \"application/json\"\n    }\n  }\n  items = {\n    \"service-url\" = \"https://somewhere.ukho.gov.uk\"\n  }\n  pe_enabled              = true\n  hub_subscription_id     = var.hub_subscription_id\n  vnet_name               = data.azurerm_virtual_network.spoke.name\n  pe_environment          = var.environment\n  pe_subnet_name          = data.azurerm_subnet.spoke-pe-subnet.name\n  dns_resource_group_name = var.dns_resource_group\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukho%2Ftfmodule-azure-keyvault-aac","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fukho%2Ftfmodule-azure-keyvault-aac","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fukho%2Ftfmodule-azure-keyvault-aac/lists"}