Using byoip address with a Lightsail instance?

0

I'm trying to attach one of our BYOIP ip addresses to a Lightsail instance. Can someone tell me how to do this? I asked Amazon Q if this was possible and got the following answer:


Yes, you can assign a BYOIP IP address to a Lightsail instance. Here are the basic steps:

  1. Create a static IP in Lightsail and attach it to your instance. This will prevent the public IP from changing when stopping and starting the instance.

  2. Create a BYOIP address range in your AWS account and associate it with your VPC.

  3. Allocate an address from your BYOIP range.

  4. Modify the route table associated with your Lightsail instance to route traffic for the BYOIP address to the instance.

  5. Update any DNS records like your domain name to point to the new BYOIP address instead of the Lightsail public IP.

It involves a few additional configuration steps compared to just using a Lightsail static IP, but it allows you to use an IP address from your own pool. The AWS documentation has more detailed instructions on setting up BYOIP and routing traffic to resources like Lightsail instances. Let me know if any part of the process needs more clarification.


I'm stuck at the modify the route table part. I can start to add a new route for one IP address from my range, but when I select to route to an Instance and enter the i-<number> instance id of the Lightsail instance it says it doesn't exist.

rbdii
已提问 1 个月前202 查看次数
2 回答
1
已接受的回答

Hi,

An address from your BYOIP addresses can NOT be attached to a Lightsail instance. Amazon Q is sadly mistaken in its response.

Thanks

profile pictureAWS
专家
AWS-SUM
已回答 1 个月前
  • Thank you! 🙂

  • No problem :)

0

Hello.

I thought that it might not be possible to directly link a BYOIP address to Lightsail.
I searched the documentation, but couldn't find any instructions for linking BYOIP to Lightsail.

I'm not sure if this is possible, but you can set up an ALB by connecting Lightsail and VPC with VPC peering.
If you set up AWS Global Accelerator for the ALB you set up, you may be able to use BYOIP.
https://repost.aws/knowledge-center/lightsail-add-application-load-balancer

AWS Global Accelerator supports BYOIP as described in the following documentation.
https://docs.aws.amazon.com/global-accelerator/latest/dg/using-byoip.html

profile picture
专家
已回答 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则