Overriding Hostname on ECS Fargate
Hello,
I am setting up a Yellowfin deployment using their stock app-only image on ECS Fargate. I was able to set up a test cluster for my team to experiment with.
Yellowfin requires a license to use their software. To issue a license, Yellowfin needs to know the hostname of the underlying platform it runs on. Yellowfin can provide wildcard licenses that match on a standard prefix or suffix. Currently, we are using a development license that matches on the default hostname that our test environment's Fargate task is assigned.
The default hostname seems to be of the form <32-character alphanumeric string>-<10-digit number> where the former is the running task's ID and the latter is an ID of some other related AWS resource (the task definition? the cluster?) that I could not identify. Although this 10-digit number stays constant if new tasks are run, it does not seem like a good strategy to base the real Yellowfin license off of it.
I would like to override the hostname of a Fargate task when launching the container to include a common prefix (e.g., "myorg-yfbi-") to make it simple to request a wildcard license for actual use. If possible, I would like to avoid building my own image or migrating to use another AWS service.
Is there a standard way to override the hostname for a Fargate service by solely updating the task definition? Would overriding the entrypoint be a viable option? Is there another way to set hostname in Fargate that I am not aware of?
Thank you for any guidance you can provide. Happy to provide more information if it helps.
For ECS tasks running on Fargate or with AWS VPC networking, you cannot currently customize the hostname of the container. I would recommend reaching out to Yellowfin to see if they can offer an AWS Marketplace-based offering for AWS containers. AWS Marketplace supports licensing and metered usage for container services.
Relevant questions
Overriding Hostname on ECS Fargate
Accepted Answerasked 3 months agoResource Utilization for Fargate ECS
Accepted AnswerMoving to ECS-Fargate from EC2
asked 4 months agoMaxInstanceLifetime value for ECS Fargate
Accepted Answerasked 3 months agoECS Fargate - How to get IP Address
Accepted Answerasked 5 months agoScaling ECS Fargate - graceful session draining
Accepted Answerasked a year agoRDS DB migrations using ECS and Fargate
asked 2 years agoAre there any best practices for sending logs from ECS on EC2, ECS on Fargate and other AWS services such as API GW, load balancers (and more AWS services) to Splunk?
asked 2 months agocan I prevent Client VPN from setting the hostname on the client machine?
Accepted Answerasked a year agoUpgrade ecs-agent on Windows 2016 ECS Optimized AM
asked 2 years ago