Skip to content

Commit 451d442

Browse files
authored
feat: Updated Key Vault Depreciated Attribute (#80)
* feat: Updated Key Vault Depreciated Attribute * fix: Removed Unused Data Block
1 parent 59358da commit 451d442

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

main.tf

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ resource "azurerm_key_vault" "key_vault" {
4040
tenant_id = data.azurerm_client_config.current_client_config.tenant_id
4141
purge_protection_enabled = var.purge_protection_enabled
4242
soft_delete_retention_days = var.soft_delete_retention_days
43-
enable_rbac_authorization = var.enable_rbac_authorization
43+
rbac_authorization_enabled = var.enable_rbac_authorization
4444
public_network_access_enabled = var.public_network_access_enabled
4545
sku_name = var.sku_name
4646
enabled_for_deployment = var.enabled_for_deployment
@@ -257,18 +257,6 @@ resource "azurerm_private_endpoint" "pep" {
257257
}
258258
}
259259

260-
##-----------------------------------------------------------------------------
261-
## Data block to retreive private ip of private endpoint.
262-
##-----------------------------------------------------------------------------
263-
data "azurerm_private_endpoint_connection" "private-ip" {
264-
provider = azurerm.main_sub
265-
count = var.enabled && var.enable_private_endpoint ? 1 : 0
266-
267-
name = azurerm_private_endpoint.pep[0].name
268-
resource_group_name = var.resource_group_name
269-
depends_on = [azurerm_key_vault.key_vault]
270-
}
271-
272260
##-----------------------------------------------------------------------------
273261
## Below resource will create private dns zone in your azure subscription.
274262
## Will be created only when there is no existing private dns zone and private endpoint is enabled.

0 commit comments

Comments
 (0)