# EC2

It is Infrastructure as a Service. EC2 abbreviate from `Elastic compute cloud`

It is the **virtual machine** that manage by AWS that you can rent.

**EC2 Configuration**

* OS (Linux , Mac or Window)
* CPU
* RAM
* Storage (1) Network drive -> EBS & EFS (2) Hardware EC2 Instance store
* Network Card (ENI) -> Public IP
* Firewall -> Security group
* Bootstrap Script -> User Data

{% hint style="danger" %}
EC2 always change Public IP but does not  change Private IP.  So If you would like to fix Public IP then you can use Elastic IP as an option. (Not recommend) or you can register DNS name to it (Recommend) or Load Balancer (Recommend)
{% endhint %}
