diff --git a/main.tf b/main.tf index 2160309..afcdecf 100644 --- a/main.tf +++ b/main.tf @@ -64,37 +64,11 @@ resource aws_ecs_service main { } } - service_registries { - registry_arn = aws_service_discovery_service.main.arn - } - lifecycle { ignore_changes = [desired_count] } } -# --------------------------------------------------- -# Service Discovery -# --------------------------------------------------- -resource aws_service_discovery_service main { - name = "${var.name_prefix}-${var.zenv}-${var.service_name}" - tags = merge(var.standard_tags, tomap({ Name = var.service_name })) - - dns_config { - namespace_id = var.service_discovery_id - routing_policy = "MULTIVALUE" - - dns_records { - ttl = 10 - type = "A" - } - } - - health_check_custom_config { - failure_threshold = 1 - } -} - # --------------------------------------------------- # Container - Main # ---------------------------------------------------