2 Answers
- Newest
- Most votes
- Most comments
0
Hello,
You can try using the Launch template support for AWS Batch for this requirement. Using launch template you can add custom userdata which will add a particular entry to /etc/hosts file on instance launch.
#!/bin/bash
echo "1.1.1.1 myexampledomain.com" >> /etc/hosts
Reference documentation: https://docs.aws.amazon.com/batch/latest/userguide/launch-templates.html
0
Hi!
Thank you for the response, but I forgot to mention we are using Fargate and it seems that Launch Template are not supported by Fargate.
answered 4 years ago
Relevant content
asked 2 years ago
