2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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.
답변함 2년 전