AWS EC2 Instance Lifecycle
- This is about the states in an on-demand ec2 instances and also for which states we will be charged

- Refer Here for official docs
-
Factors to consider in AWS EC2 billing on-demand
- instance type:
- This is chargable only when ec2 is running
- elastic ip (public ip)
- This is chargable when you are running
- you will be charged even if it not running when you want the same public ip after stop and start.
- disk (ebs volume)
- This is chargable irrespective of state
- instance type:
- Lets create a ec2 instance with public ip, stop the instance and then start the instance back we get a different public ip.



Lets play with pricing calculators
- AWS EC2 instance costs vary from region to region slightly
- Pricing calculator
- refer classroom video for demonstrations
Azure VM States (On-demand)
- Refer Here for official docs

-
Factors to consider in Azure Vm billing on-demand
- Size: VM will be charged in the starting, running, stopping and stopped where as will not be charged in creating, deallocating and deallocated states
- public ip
- This is chargable when you are running
- Azure by default gives a static public ip for vm
- disk (ebs volume)
- Azure Pricing Caclculator and Azure VM States demonstration watch classroom recording
