Open diablodale opened 4 years ago
Hello, is there any known workaround for this or any ecs cli version number that worked previously?
Personally, I didn't find a workaround. I instead wrote my own SD engine w/ cloudwatch events and lambda that uses route53, EC2, and ECS apis. It fits my immediate needs (can't wait, gotta ship) while longer-term the AWS native SD solution can be sorted. I'm unclear if the problem is docs, lack of feature, bug in ecs-cli, or somewhere else. It was too open-ended for me to go on an unbounded bug hunt.
Thank you for your feedback. In the meantime I worked around this issue with a Route 53 ALIAS entry to an application loadbalancer and configured my ecs service as target group of this loadbalancer.
ok, I dug into this a bit and thought I'd share my findings. Hope this is the correct place to share this.
Summary
Unable to create ECS service with public dns namespace service discovery. Multiple failure scenarios.
Setup
electroglitch.com
with the IDZ11DHWRTAZEXOD
task_role_arn
andtask_execution_role
. Replace mine with your two roles in the below ecs-params.yml~/.ecs/config
docker-compose.yml
ecs-params.yml
Repo 1
ecs-params.yml
.public_dns_namespace.name
value with your Route53 DNS zone name without a trailing periodActual Result 1
Expected Result 1
No error and a SRV entry to be inserted into my public DNS zone.
Repo 2
ecs-params.yml
.public_dns_namespace.name
value with your Route53 DNS zone name with a trailing periodActual Result 2
Expected Result 2
No error and a SRV entry to be inserted into my public DNS zone.
Repo 3
ecs-params.yml
.#
at the start of the linepublic_dns_namespace.name
line#
at the start of the line#id: Z11DHWRTAZEXOD
id
with your Route53 zone idActual Result 3
Expected Result 3
No error and a SRV entry to be inserted into my public DNS zone.
Workarounds
None known