Skip to content

Commit

Permalink
[PE-881] Output PEP's recordsets for App Services (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-calabrese authored Jan 10, 2025
1 parent 8582e8c commit 3b9baf7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/tame-seals-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"azure_app_service": patch
---

Adding to outputs the recordsets pointing to app services' private endpoint
14 changes: 8 additions & 6 deletions infra/modules/azure_app_service/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@ output "app_service" {
name = try(azurerm_service_plan.this[0].name, null)
}
app_service = {
id = azurerm_linux_web_app.this.id
name = azurerm_linux_web_app.this.name
principal_id = azurerm_linux_web_app.this.identity[0].principal_id
id = azurerm_linux_web_app.this.id
name = azurerm_linux_web_app.this.name
principal_id = azurerm_linux_web_app.this.identity[0].principal_id
pep_record_sets = azurerm_private_endpoint.app_service_sites.private_dns_zone_configs[0].record_sets
slot = {
id = try(azurerm_linux_web_app_slot.this[0].id, null)
name = try(azurerm_linux_web_app_slot.this[0].name, null)
principal_id = try(azurerm_linux_web_app_slot.this[0].identity[0].principal_id, null)
id = try(azurerm_linux_web_app_slot.this[0].id, null)
name = try(azurerm_linux_web_app_slot.this[0].name, null)
principal_id = try(azurerm_linux_web_app_slot.this[0].identity[0].principal_id, null)
pep_record_sets = try(azurerm_private_endpoint.staging_app_service_sites[0].private_dns_zone_configs[0].record_sets, null)
}
}
}
Expand Down

0 comments on commit 3b9baf7

Please sign in to comment.