-
Notifications
You must be signed in to change notification settings - Fork 93
Support Amazon Linux 2023 #65
Comments
This comment was marked as outdated.
This comment was marked as outdated.
This was a pretty painful yak shaving experience and I am not sure if it is correct. But here are my working changes for Amazon Linux 2023. Change the ENI role to the following:
Change the data block for the AMI to:
In my outdated comment it picked the minimal AMI causing me to lose access with Systems Manager. Change the runonce.sh to this:
Change snat.sh to, I opted not to swap around the default interfaces but instead just redirect traffic with iptables:
PS: I am not sure why it worked with Amazon Linux 2, but I think both of the ENI's need to have source/destination check set to false. This library only sets the source destination check to false on the new ENI (the one without the public IP). AFAIK there is no way to set it up for public IPs so it has to be done from the instances. Please correct me if I am wrong! |
In addition, you might also want to change runonce.sh attaching of the ENI to this:
Because sometimes, if a instance shutdown, and a new instance starts quickly, the ENI might have not been released from the previous instance. This causes the NAT instance to never work because it unable to attach the ENI. |
@alexjeen Thanks! That fixed my issues. |
The current snat.sh script doesn't work on Amazon Linux 2023.
Here's my first attempt at an alternative script for Amazon Linux 2023
There's a couple of areas which could use improvement such as:
ens5
andens6
If there is anyone else interested in having this module work with Amazon Linux 2023 comment here and i'll submit a PR.
The text was updated successfully, but these errors were encountered: