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 個月前檢視次數 203 次
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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南