Skip to content

Instantly share code, notes, and snippets.

View josephphyo's full-sized avatar

Phyo Min Htun (Joseph) josephphyo

View GitHub Profile
@josephphyo
josephphyo / AWSCLI-Ec2
Last active February 15, 2020 10:26
AWS Cli Usage - Sample
<< Key Pair >>
Create a Key Pair
$ aws ec2 create-key-pair --key-name MyKeyPair --query 'KeyMaterial' --output text > MyKeyPair.pem
$ chmod 400 MyKeyPair.pem
Display Key Pair
$ aws ec2 describe-key-pairs --key-name MyKeyPair
Delete Key Pair
$ aws ec2 delete-key-pair --key-name MyKeyPair
@josephphyo
josephphyo / Disaster Recovery Scenarios Options
Last active April 7, 2020 06:20
Key factors for Disaster Planning
Backup & Restore (Data backed up and restored)
Pilot Light (Only Minimal critical functionalities)
Warm Standby (Fully Functional Scaled down version)
Multi-Site (Active-Active)
@josephphyo
josephphyo / AWS RIs Types
Last active August 4, 2019 17:17
AWS RIs Types
Standard Amazon Reserved Instances
> Switching between Regional and an Availability Zone scope (more on that below).
> Switch between Availability Zones to a specific zone within the same region (for AZ scoped RIs only).
> Switching between Classic EC2 Reserved Instances and Virtual Private Cloud.
> Altering the instance size within the same family (For example, splitting an m4.xlarge Reservation into 2 m4.large Reservations, or the reverse: merging 2 m4.large Reservations into 1 m4.xlarge reservation.)
Convertible RIs
> Exchange for a new Instance type (across families)