Skip to content

Commit

Permalink
Allow Access Policy name to be speficied explicitely AB#21752
Browse files Browse the repository at this point in the history
  • Loading branch information
pipalmic committed Oct 11, 2024
1 parent 6ac57d2 commit 280cc79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ provider "azurerm" {
}

resource "azurerm_resource_group_template_deployment" "policy" {
name = "${var.connection_name}-ap"
name = var.name != null ? var.name : "${var.connection_name}-ap"
resource_group_name = var.resource_group_name
deployment_mode = "Incremental"
template_content = file("${path.module}/policy.json")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ variable "resource_group_name" {
description = "Name of the resource group."
}

variable "name" {
type = string
description = "Name of the resource which will be created"
default = null
}

variable "connection_name" {
type = string
description = "Name of the connection."
Expand Down

0 comments on commit 280cc79

Please sign in to comment.