Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

189
Views
Pointing AWS CloudFront to ECS with Route53 SRV

I was wondering how to point AWS CloudFront to AWS ECS Container using Service Discovery (Route 53 with SRV Record).

ECS is based on Spot EC2 with no Load Balancer.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

The suggested approach for an architecture running on a container is to have traffic to the container forwarded from a AWS ELB.

If you're using ECS with service discovery then the record being written is actually written to a private hosted zone which is not accessible outside of the VPC(s) it is attached to.

Furthermore containers are ephemeral, with a risk further increased by using a spot instance that the container could be terminated at any point. If the instance is public facing it would need an Elastic IP address to be associated to it so that it could retain the IP address.

You would want to create an A record to this EIP for CloudFront to be able to use it, this A record should have the value of a domain that CloudFront should resolve, and must be in a public hosted zone.

Within your CloudFront distribution the origin value would be set to be the domain name that you setup in the previous step.

over 4 years ago · Santiago Trujillo Report

0

You can enable service discovery for Fargate. It uses CloudMap, will automatically create a managed zone and entry inside it. That is the only way to do it without a loadbalancer and hacks. The other way is just to have a lambda function which would update Route53 upon container creation and IP address assignment.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!