Skip to content

Commit

Permalink
Merge pull request #434 from recognizegroup/feature/21752-optional-ac…
Browse files Browse the repository at this point in the history
…cess-policy-name

Allow Access Policy name to be speficied explicitely AB#21752
  • Loading branch information
tom-reinders authored Oct 14, 2024
2 parents 6ac57d2 + 280cc79 commit 5e3dad1
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 5e3dad1

Please sign in to comment.