Does Lightsail Private IP accessible from other Private IP instances ?

Should I setup IP tables rules ?


Related discussions:

No, you’re in your own VPC. If you create two and put them in the same VPC then they will be able to connect to each other

Thank you

you can connect even to your ec2 instances from lightsail, if you enable peering.

you may have to add `x.x.0.0` to the inbound rules on its security group and VPC for other instances to be able to see it

Don’t know why you were downvoted. This is correct.

This is not correct. All Lightsail instances in a region share the same VPC, so each private IP is accessible from all other instances in the same account/region.

Also, you cannot “put them” in a particular VPC. There is one VPC per region per account.

For EC2 instances in your default VPC, you can peer the Lightsail VPC with your default VPC to allow access.

Any sources ?

I don’t much pay atenttion to votes, they do not matter to me at all :slight_smile: Maybe I am like Kimi Raikkonen, he does not give a shit what others thinks. I go have a shit.

https://lightsail.aws.amazon.com/ls/docs/en_us/articles/understanding-public-ip-and-private-ip-addresses-in-amazon-lightsail#ipv4-addresses

That’s incorrect. By default they are only accessible by other resources within your account, unless you enable VPC peering.

The private IP address of your instance can be accessible to other AWS resources in the same AWS Region, but outside of your Lightsail account, if you enable VPC peering.

Update: confirmed this with our AWS account rep.

Why am I getting downvoted for providing the actual correct answer?? Wtf

That is what I meant. I did say there’s one VPC per region per account.

Makes sense.