Skip to content

Commit 92dabad

Browse files
fix: Add named provider configuration alias
1 parent 0f1c4c6 commit 92dabad

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

infrastructure/modules/lets-encrypt-certificates/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A Terraform module to obtain publicly trusted SSL certificates from the Let's En
2828
2929
## Example Usage
3030
31-
```terraform
31+
```hcl
3232
module "lets_encrypt_certificates" {
3333
source = "../../dtos-devops-templates/infrastructure/modules/lets-encrypt-certificates"
3434

@@ -57,7 +57,7 @@ module "lets_encrypt_certificates" {
5757

5858
Note the compound key `${naming_key}-${region}`:
5959

60-
```terraform
60+
```hcl
6161
key_vault_certificates = {
6262
"nationalscreening_wildcard-uksouth" = {
6363
"id" = "redacted"

infrastructure/modules/linux-web-app/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ resource "azurerm_linux_web_app" "this" {
7575
resource "azurerm_dns_txt_record" "validation" {
7676
for_each = toset(var.custom_domains)
7777

78-
provider = azurerm.hub # Terraform Managed Identity will need DNS Contributor RBAC role on the DNS Zone
78+
provider = azurerm.dns # Terraform Managed Identity will need DNS Contributor RBAC role on the DNS Zone
7979

8080
name = "asuid.${split(".", each.key)[0]}"
8181
zone_name = replace(each.key, "${split(".", each.key)[0]}.", "")

infrastructure/modules/linux-web-app/providers.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ terraform {
22
required_providers {
33
azurerm = {
44
source = "hashicorp/azurerm"
5+
configuration_aliases = [azurerm.dns]
56
}
67
}
78
}

0 commit comments

Comments
 (0)