Skip to content

AWS EC2

Posted on:September 19, 2022 at 05:56 PM

tp.web.random_picture

My notes on AWS Elastic Compute Cloud (EC2) service.

Table of contents

Open Table of contents

AWS EC2 Overview

EC2 User Data

Instance Types

Cheatsheet

Security Groups

[!MEMORY] Cloud Architect Certification You’re not required to demonstrate how to properly configure Security Groups. It is important to understand.

Classic Ports to know

How to SSH using Linux or Mac

ssh -i YourFile.pem ec2-user@X.X.X.X

If you receive error of “Unprotected private key file” as follows then change the file permission using the chmod 0400 PhantDevServer.cer command.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0644 for '/PhantDevServer.cer' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.

EC2 Instance Purchase Options

[!MEMORY] Reserved Instance Marketplace You can buy and sell your reserved instances in the Reserved Instance Marketplace.

[!MEMORY] Spot Fleets Set of Spot Instances + (Optional) On-Demand Instances

References