From 1e066646e4ae62c0f56af2163a8b1a78ef2bcfab Mon Sep 17 00:00:00 2001 From: Gal Szkolnik Date: Tue, 1 Aug 2023 06:51:22 +0000 Subject: [PATCH] Added traffic manager profiel - incomplete --- src/ASSIGNMENT-03/_tf/plan.tf | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/ASSIGNMENT-03/_tf/plan.tf b/src/ASSIGNMENT-03/_tf/plan.tf index 6be2772..a702cc8 100644 --- a/src/ASSIGNMENT-03/_tf/plan.tf +++ b/src/ASSIGNMENT-03/_tf/plan.tf @@ -73,6 +73,21 @@ module "deployed_network" { ] } +resource "azurerm_traffic_manager_profile" "traffic_manager" { + name = "traffic-mgr" + resource_group_name = local.resource_group_name + traffic_routing_method = "Geographic" + dns_config { + relative_name = "traffic-mgr" + ttl = 60 + } + monitor_config { + path = "/" + port = 443 + protocol = "HTTP" + } +} + # output "debug" { # value = [ for o in module.deployed_host : o.resources.host.name ] # }