Open LiranV opened 1 year ago
Can we just terminate the instance if the aws ec2 attach-network-interface
command fails? Presumably the ENI will free up after a minute or two, and the second or third EC2 box launched by the Auto-Scaling Group would succeed in attaching the ENI.
Edit: PR #72 seems pretty good also .. how come it's not merged?
Hello, I've encountered the following issue:
This happens because the
aws ec2 attach-network-interface
command in therunonce.sh
script to fails, but it still moves on to starting thesnat
service.In the
snat.sh
script (ran by thesnat.service
) we have the following loop:Which will run forever as the eth1 interface will never be available.
Possible solutions:
aws ec2 attach-network-interface
to see that the interface was actually attached (or check return code), if not, fail somehow.