Skip to content

Commit

Permalink
Alterando mapeamento 6
Browse files Browse the repository at this point in the history
  • Loading branch information
jonilsonds9 committed Nov 1, 2023
1 parent 41892ec commit 1c41961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infra/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ resource "aws_iam_role_policy_attachment" "ecsTaskExecutionRole_policy" {
}

resource "aws_service_discovery_http_namespace" "this" {
name = "lanchonete.postech"
name = "lanchonete-postech"
description = "Descorberta para serviços ECS"
}

Expand Down Expand Up @@ -171,7 +171,7 @@ resource "aws_ecs_service" "payment" {
namespace = aws_service_discovery_http_namespace.this.arn
service {
port_name = "payment"
discovery_name = "lanchonete.postech"
discovery_name = "lanchonete-postech"
client_alias {
dns_name = "payment-lanchonete"
port = 80
Expand Down Expand Up @@ -219,7 +219,7 @@ resource "aws_ecs_service" "app" {
namespace = aws_service_discovery_http_namespace.this.arn
service {
port_name = "app"
discovery_name = "lanchonete.postech"
discovery_name = "lanchonete-postech"
client_alias {
dns_name = "app-lanchonete"
port = 80
Expand Down

0 comments on commit 1c41961

Please sign in to comment.