Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS-Load Balancer. Does it incur cost when no EC2 is linked to them?

As the title says, does ELB incur cost when no instance of EC2 is linked to it. I don't mean an instance of EC2 being "stopped", i mean when no ec2 is registered under ELB.

If ELB still incur cost, is there a way for me to stop the cost incurring without deleting the ELB? I don't want to have to configure an ELB every time I need to use it. FYI, i'm just in the process of developing so I don't need ELB EC2 to any other service up 24 hrs.

Thank you.

like image 508
shle2821 Avatar asked Aug 06 '16 07:08

shle2821


1 Answers

Citing from https://aws.amazon.com/elasticloadbalancing/pricing/

$0.025 per Elastic Load Balancer-hour (or partial hour)

$0.008 per GB of data processed by an Elastic Load Balancer

Meaning that even ELB does not have any instance attached, you'll be charged on hourly basis.

You can use Cloudformation to create your ELB. By this way you'll have a JSON file including the whole configuration of your ELB and whenever you are not using it, you can just remove the Cloudformation stack to get rid of resources and create again with 1-click whenever you need it.

The best practice in AWS is to configure the whole structure using Cloudformation by the way.

like image 97
Çağatay Gürtürk Avatar answered Sep 19 '22 20:09

Çağatay Gürtürk