I’ve a small problem in that I created an AMI in one AWS region and then copied it to another region. I’ve used it to fire up instances in the new region but the new instances all have some static routes that relate to the network interface of the previous region and as such the 169.254.169.254 metadata service isn’t reachable:
The route print
from an instance in the region where I created the AMI is:
Network Address Mask GW Met
169.254.169.254 255.255.255.255 172.31.16.1 15
169.254.169.250 255.255.255.255 172.31.16.1 15
169.254.169.251 255.255.255.255 172.31.16.1 15
169.254.169.249 255.255.255.255 172.31.16.1 15
169.254.169.123 255.255.255.255 172.31.16.1 15
169.254.169.253 255.255.255.255 172.31.16.1 15
The region I’m now spinning up instances in has e.g.:
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.30.1.1 172.30.1.180 15
I could start an instance, modify the routing table with e.g. route change 169.254.169.254 mask 255.255.255.255 172.30.1.1 metric 15 if 3
, shut it down, save an AMI, and launch more instances from the new AMI… But is there a way to do all this from outside the instance/in the management panel so I don’t have to create another image?
Source: Windows Questions