EC2 provides virtual servers in AWS.

Instance

An EC2 instance is a virtual machine.

You choose:

EC2 gives flexibility, but you manage more than with fully managed services.

AMI

An AMI is an Amazon Machine Image. It is the starting template for an instance.

It includes:

Common AMIs include Amazon Linux, Ubuntu, and Windows Server.

Instance types

Instance types define CPU, memory, networking, and hardware characteristics.

Examples:

Pick based on workload, not guesswork.

Security groups

Security groups control inbound and outbound traffic.

For a backend server:

User data

User data runs scripts when an instance starts.

It is often used to:

Do not put secrets directly in user data.

Operational responsibility

With EC2, you usually own:

Quick revision