What is difference between Lightsail and EC2? [closed]
Asked Answered
S

5

478

Recently Amazon launched Lightsail. Is there any difference between them? If yes, then what's the difference? Are Lightsail instances more powerful than EC2?

Subdebutante answered 2/12, 2016 at 7:46 Comment(0)
C
668

Testing¹ reveals that Lightsail instances in fact are EC2 instances, from the t2 class of burstable instances.

EC2, of course, has many more instance families and classes other than the t2, almost all of which are more "powerful" (or better equipped for certain tasks) than these, but also much more expensive. But for meaningful comparisons, the 512 MiB Lightsail instance appears to be completely equivalent in specifications to the similarly-priced t2.nano, the 1GiB is a t2.micro, the 2 GiB is a t2.small, etc.

Lightsail is a lightweight, simplified product offering -- hard disks are fixed size EBS SSD volumes, instances are still billable when stopped, security group rules are much less flexible, and only a very limited subset of EC2 features and options are accessible.

It also has a dramatically simplified console, and even though the machines run in EC2, you can't see them in the EC2 section of the AWS console. The instances run in a special VPC, but this aspect is also provisioned automatically, and invisible in the console. Lightsail supports optionally peering this hidden VPC with your default VPC in the same AWS region, allowing Lightsail instances to access services like EC2 and RDS in the default VPC within the same AWS account.²

Bandwidth is unlimited, but of course free bandwidth is not -- however, Lightsail instances do include a significant monthly bandwidth allowance before any bandwidth-related charges apply.³ Lightsail also has a simplified interface to Route 53 with limited functionality.

But if those sound like drawbacks, they aren't. The point of Lightsail seems to be simplicity. The flexibility of EC2 (and much of AWS) leads inevitably to complexity. The target market for Lightsail appears to be those who "just want a simple VPS" without having to navigate the myriad options available in AWS services like EC2, EBS, VPC, and Route 53. There is virtually no learning curve, here. You don't even technically need to know how to use SSH with a private key -- the Lightsail console even has a built-in SSH client -- but there is no requirement that you use it. You can access these instances normally, with a standard SSH client.


¹Lightsail instances, just like "regular" EC2 (VPC and Classic) instances, have access to the instance metadata service, which allows an instance to discover things about itself, such as its instance type and availability zone. Lightsail instances are identified in the instance metadata as t2 machines.

²The Lightsail docs are not explicit about the fact that peering only works with your Default VPC, but this appears to be the case. If your AWS account was created in 2013 or before, then you may not actually have a VPC with the "Default VPC" designation. This can be resolved by submitting a support request, as I explained in Can't establish VPC peering connection from Amazon Lightsail (at Server Fault).

³The bandwidth allowance applies to both inbound and outbound traffic; after this total amount of traffic is exceeded, inbound traffic continues to be free, but outbound traffic becomes billable. See "What does data transfer cost?" in the Lightsail FAQ.

Chose answered 2/12, 2016 at 13:3 Comment(9)
Very informative. My favorite IT red top "The Register" has a write-up about the launch of Lightsail: "Cheap virtual box hosters – Amazon's Lightsail is out to destroy you (yes, you, Digital Ocean) Look out for bill shock, though, devs". Check out the curmudgeon-occupied comment section too. I may well give Lightsail a spin.Cameroncameroon
The Lightsail GetBundles API reports the underlying instance type :-)Samul
Note that Lightsail's firewall controls are less fine-grained than EC2. EC2 allows you to whitelist IP ranges, but Lightsail only allows you to enable all access to specified ports. With EC2 you can specify to allow ssh for only your IP address, changing it in the console if you log in from a new location. With Lightsail, you cannot do this. You can, of course, still use iptables.Arteriotomy
@TylerA. that's a good point. Lightsail's simplified security group settings also do not allow any protocols other than TCP and UDP -- no ICMP, ESP, GRE, etc.Chose
Coming from EC2 to Lightsail an important difference is you can't change instance type on Lightsail - you have to launch a new instance from a snapshot - and you can only go up in size!Spiritualize
@Spiritualize that's a good point. Thank you for the link.Chose
This is so well written and clear that it should be in the Amazon docs. Well done!Farkas
"Lightsail instances do include a significant monthly outbound bandwidth allowance" It is not just outbound, it will also calculate inbound bandwidth under that free quota. @Michael-sqlbotDamiendamietta
@PradipVaghasiya only outbound is billable, but you are correct to point out that inbound traffic means less outbound traffic will be included in the free quota. The answer has been updatedChose
S
40

Lightsail VPSs are bundles of existing AWS products, offered through a significantly simplified interface. The difference is that Lightsail offers you a limited and fixed menu of options but with much greater ease of use. Other than the narrower scope of Lightsail in order to meet the requirements for simplicity and low cost, the underlying technology is the same.

The pre-defined bundles can be described:

% aws lightsail --region us-east-1 get-bundles
{
    "bundles": [
        {
            "name": "Nano",
            "power": 300,
            "price": 5.0,
            "ramSizeInGb": 0.5,
            "diskSizeInGb": 20,
            "transferPerMonthInGb": 1000,
            "cpuCount": 1,
            "instanceType": "t2.nano",
            "isActive": true,
            "bundleId": "nano_1_0"
        },
        ...
    ]
}

It's worth reading through the Amazon EC2 T2 Instances documentation, particularly the CPU Credits section which describes the base and burst performance characteristics of the underlying instances.

Importantly, since your Lightsail instances run in VPC, you still have access to the full spectrum of AWS services, e.g. S3, RDS, and so on, as you would from any EC2 instance.

Samul answered 15/12, 2016 at 13:33 Comment(1)
If these are actually t2 instances, do they have the same cpu credit limitations? An issue I have with Nanos is when they run out of cpu credits, they're brutally slow.Nayarit
B
37

In lightsail a virtual machine, SSD-based storage, data transfer, DNS management, and a static IP are all offered as a package. Whereas in normal case you provision an EC2 instance and then setup the rest of these things.Also Bandwidth included in the price, no security groups to set up, no need to worry about EBS volumes sizing.

Brakeman answered 2/12, 2016 at 10:24 Comment(0)
C
22

Check official website https://aws.amazon.com/free/compute/lightsail-vs-ec2/

enter image description here

Amazon Lightsail – The Power of AWS, the Simplicity of a VPS https://aws.amazon.com/blogs/aws/amazon-lightsail-the-power-of-aws-the-simplicity-of-a-vps/

Amazon EC2 vs Amazon Lightsail (comparison on point )

  • Web Performances
  • Plans
  • Features and Usability enter image description here

Source : https://www.vpsbenchmarks.com/compare/features/ec2_vs_lightsail

Cormorant answered 14/9, 2017 at 8:54 Comment(2)
Those are really misleading graphs. It's good to start them at 0. Something this is 2x value in real life, shouldn't have a chart bar 6x the size.Justify
Suppose I have 3 light sail instances (also knows as vps - virtual private server), then, can they by default talk to each other?Aixlachapelle
P
3

I think the lightsail as the name suggest is light weight and meant for initial development. For production sites and apps with high volume it simply becomes unavailable and hangs....It is just a sandbox to play with things. Further lack of support reduces its reliability. There should be an option to migrate to EC2, when u fully develop your apps or sites..So that with same minimum configuration you can migrate to scalable EC2..

Petard answered 16/11, 2018 at 1:24 Comment(1)
Tou can now explort lightsail snapshots to EC2 lightsail.aws.amazon.com/ls/docs/en_us/articles/…Ryder

© 2022 - 2024 — McMap. All rights reserved.