> For the complete documentation index, see [llms.txt](https://dev7days.gitbook.io/dev7days/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev7days.gitbook.io/dev7days/aws/ec2.md).

# EC2

Describe about What is 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 %}
