Hi there - This is a very new area for me, so I apologize in advance for naivety and stupidity. I’m going round in circles trying to solve this so I thought I should swallow my pride and ask for help.
I successfully setup LXD on an EC2 instance (using Amazon Linux 2) and using the default bridge settings was able to launch two containers, each with an IP assigned by the bridge. I can ping out of the containers and following these instructions I was able to setup routes through to each container - How To Install and Configure LXD on Ubuntu 20.04 | DigitalOcean
Everything works fine other than both containers use the host IP address outbound where I need each to have its own public IP address. I have separate Elastic IPs in AWS, along with corresponding private ipv4 addresses, but I can’t figure out how to assign them to a container. At present they all show under eth0 (the host network interface). I’ve read numerous posts about different methods to assign container IP addresses and have also seen mention of challenges with AWS. My head is spinning and I can’t see the wood for the trees anymore!
Any help would be greatly appreciated. Thank you!