2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a 4 ans
Contenus pertinents
demandé il y a 2 ans
demandé il y a un an
demandé il y a un an
- AWS OFFICIELA mis à jour il y a 5 ans
