From 28526db5d8e3bc0a9eafea91a5bd14e49a6cd9b5 Mon Sep 17 00:00:00 2001 From: "Trenton D. Adams" Date: Tue, 16 Nov 2021 00:16:30 -0700 Subject: [PATCH 1/2] VPC configuration required for service discovery Make a note that VPC must be configured correctly with public dns names enabled in order for service name resolution to function. --- cloud/ecs-integration.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cloud/ecs-integration.md b/cloud/ecs-integration.md index d31479de79..0b0afa3853 100644 --- a/cloud/ecs-integration.md +++ b/cloud/ecs-integration.md @@ -251,6 +251,8 @@ Services are registered automatically by the Docker Compose CLI on [AWS Cloud Ma Services can retrieve their dependencies using Compose service names (as they do when deploying locally with docker-compose), or optionally use the fully qualified names. +**Note:** Service names, nor the fully qualified service names, will resolve unless you enable public dns names in your VPC. + ### Dependent service startup time and DNS resolution Services get concurrently scheduled on ECS when a Compose file is deployed. AWS Cloud Map introduces an initial delay for DNS service to be able to resolve your services domain names. Your code needs to support this delay by waiting for dependent services to be ready, or by adding a wait-script as the entrypoint to your Docker image, as documented in [Control startup order](../compose/startup-order.md). From 64430632f9b61015fd60c7d4b57525c7f658ee5f Mon Sep 17 00:00:00 2001 From: "Trenton D. Adams" Date: Tue, 16 Nov 2021 01:43:02 -0700 Subject: [PATCH 2/2] support note styling --- cloud/ecs-integration.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cloud/ecs-integration.md b/cloud/ecs-integration.md index 0b0afa3853..397370cad1 100644 --- a/cloud/ecs-integration.md +++ b/cloud/ecs-integration.md @@ -251,7 +251,9 @@ Services are registered automatically by the Docker Compose CLI on [AWS Cloud Ma Services can retrieve their dependencies using Compose service names (as they do when deploying locally with docker-compose), or optionally use the fully qualified names. -**Note:** Service names, nor the fully qualified service names, will resolve unless you enable public dns names in your VPC. +> **Note** +> +> Short service names, nor the fully qualified service names, will resolve unless you enable public dns names in your VPC. ### Dependent service startup time and DNS resolution