Skip to content
This repository has been archived by the owner on Feb 14, 2024. It is now read-only.

Commit

Permalink
feat(module/appgw): add domain_name_label support for AppGW Public IP (
Browse files Browse the repository at this point in the history
  • Loading branch information
alperenkose authored Feb 15, 2023
1 parent 8f58589 commit 0f04185
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/appgw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ No modules.
| <a name="input_capacity"></a> [capacity](#input\_capacity) | A number of Application Gateway instances. A value bewteen 1 and 125.<br><br>This property is not used when autoscaling is enabled. | `number` | `2` | no |
| <a name="input_capacity_max"></a> [capacity\_max](#input\_capacity\_max) | Optional, maximum capacity for autoscaling. | `number` | `null` | no |
| <a name="input_capacity_min"></a> [capacity\_min](#input\_capacity\_min) | When set enables autoscaling and becomes the minimum capacity. | `number` | `null` | no |
| <a name="input_domain_name_label"></a> [domain\_name\_label](#input\_domain\_name\_label) | Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system. | `string` | `null` | no |
| <a name="input_enable_http2"></a> [enable\_http2](#input\_enable\_http2) | Enable HTTP2 on the Application Gateway. | `bool` | `false` | no |
| <a name="input_location"></a> [location](#input\_location) | Location to place the Application Gateway in. | `string` | n/a | yes |
| <a name="input_managed_identities"></a> [managed\_identities](#input\_managed\_identities) | A list of existing User-Assigned Managed Identities, which Application Gateway uses to retrieve certificates from Key Vault.<br><br>These identities have to have at least `GET` access to Key Vault's secrets. Otherwise Application Gateway will not be able to use certificates stored in the Vault. | `list(string)` | `null` | no |
Expand All @@ -506,5 +507,6 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_public_domain_name"></a> [public\_domain\_name](#output\_public\_domain\_name) | Public domain name assigned to the Application Gateway. |
| <a name="output_public_ip"></a> [public\_ip](#output\_public\_ip) | A public IP assigned to the Application Gateway. |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
1 change: 1 addition & 0 deletions modules/appgw/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ resource "azurerm_public_ip" "this" {

sku = "Standard"
allocation_method = "Static"
domain_name_label = var.domain_name_label
zones = var.zones
tags = var.tags
}
Expand Down
5 changes: 5 additions & 0 deletions modules/appgw/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ output "public_ip" {
description = "A public IP assigned to the Application Gateway."
value = azurerm_public_ip.this.ip_address
}

output "public_domain_name" {
description = "Public domain name assigned to the Application Gateway."
value = azurerm_public_ip.this.fqdn
}
6 changes: 6 additions & 0 deletions modules/appgw/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ variable "name" {
type = string
}

variable "domain_name_label" {
description = "Label for the Domain Name. Will be used to make up the FQDN. If a domain name label is specified, an A DNS record is created for the public IP in the Microsoft Azure DNS system."
default = null
type = string
}

variable "managed_identities" {
description = <<-EOF
A list of existing User-Assigned Managed Identities, which Application Gateway uses to retrieve certificates from Key Vault.
Expand Down

0 comments on commit 0f04185

Please sign in to comment.