Skip to content

Commit

Permalink
Merge pull request #54 from amido/feature/private-kv-module
Browse files Browse the repository at this point in the history
feat: add param for private key vault
  • Loading branch information
RhysBushnell authored May 23, 2023
2 parents 8eedb3c + 4124fc9 commit 809f364
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions azurerm/modules/azurerm-kv/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ No modules.
| <a name="input_network_acl_default_action"></a> [network\_acl\_default\_action](#input\_network\_acl\_default\_action) | he Name of the SKU used for this Key Vault. Possible values are standard and premium | `string` | `"Deny"` | no |
| <a name="input_network_acls_bypass"></a> [network\_acls\_bypass](#input\_network\_acls\_bypass) | Specifies which traffic can bypass the network rules. Possible values are AzureServices and None | `string` | `"AzureServices"` | no |
| <a name="input_network_acls_ip_rules"></a> [network\_acls\_ip\_rules](#input\_network\_acls\_ip\_rules) | The Default Action to use when no rules match from ip\_rules / virtual\_network\_subnet\_ids. Possible values are Allow and Deny | `list(string)` | `[]` | no |
| <a name="input_public_network_access_enabled"></a> [public\_network\_access\_enabled](#input\_public\_network\_access\_enabled) | Allow public network access to Key Vault. Set as true or false. | `bool` | `true` | no |
| <a name="input_purge_protection_enabled"></a> [purge\_protection\_enabled](#input\_purge\_protection\_enabled) | Is Purge Protection enabled for this Key Vault | `bool` | `false` | no |
| <a name="input_reader_object_ids"></a> [reader\_object\_ids](#input\_reader\_object\_ids) | A list of Azure active directory user,group or application object ID's that will have reader role to the key vault | `list(string)` | `[]` | no |
| <a name="input_resource_group_location"></a> [resource\_group\_location](#input\_resource\_group\_location) | Location of Resource group | `string` | `"uksouth"` | no |
Expand Down
2 changes: 1 addition & 1 deletion azurerm/modules/azurerm-kv/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "azurerm_key_vault" "example" {
enabled_for_template_deployment = var.enabled_for_template_deployment
enable_rbac_authorization = var.enable_rbac_authorization
sku_name = var.sku_name

public_network_access_enabled = var.public_network_access_enabled

dynamic "network_acls" {
for_each = var.create_kv_networkacl == false ? toset([]) : toset([1])
Expand Down
6 changes: 6 additions & 0 deletions azurerm/modules/azurerm-kv/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,9 @@ variable "reader_object_ids" {
type = list(string)
default = []
}

variable "public_network_access_enabled" {
type = bool
default = true
description = "Allow public network access to Key Vault. Set as true or false."
}

0 comments on commit 809f364

Please sign in to comment.