1 CheatSheet: Amazon AWS

linkedin
github
slack


PRs Welcome

File me Issues or star this repo.

1.1 AWS CLI Basic

NameSummary
List all used resources in all regionsGithub: List all resources
Install aws clipip install awscli, aws help
Load aws cli profileaws configure
List regionsaws ec2 describe-regions
List instancesaws ec2 describe-instances
AWS CLI config files~/.aws/credentials, ~/.aws/config
ReferenceGithub: awslabs/aws-shell

1.2 AWS EC2

NameSummary
List images by amazonaws ec2 describe-images, aws ec2 describe-images --owners self amazon
Run a new instanceaws ec2 run-instances --image-id ami-c3b8d6aa --count 1 --key-name mykey

1.3 AWS DNS

NameSummary
List hosted zonesaws route53 list-hosted-zones
List hosted zone by nameaws route53 list-hosted-zones-by-name --dns-name my.com
List DNS records by hosted zoneaws route53 list-resource-record-sets --hosted-zone-id "/hostedzone/XXX"

1.4 AWS ECS

NameSummary
Delete Route53 zone From ECSUse aws cli

1.5 AWS Products - Fundamental

NameSummary
AWS EC2Virtual servers
AWS EKSKubernetes services in AWS
AWS ECSDocker container service with orchestrated by AWS itself.
AWS EBSBlock storage
AWS S3Object storage
AWS RDSRelational Database: e.g, mysql
AWS VPCVirtual private cloud: provides networking isolation
AWS ELBLoad balancer
AWS CloudWatchMonitoring
AWS CloudFormationCreate AWS infra in a programming way
AWS LambdaFunction as a service
AWS Machine LearningBuild Smart Applications Quickly and Easily
AWS OutpostsRun AWS infrastructure on-premises. And it’s fully managed and supported by AWS
ReferenceLink: check AWS availability, Link: AWS products

1.6 AWS Products - Big Data

NameSummary
AWS KinesisReal-time processing of streaming Big Data
AWS RedshiftPB-scale Data Warehouse
AWS DynamoDBDynamoDB NoSQL DB service from AWS
AWS EMRManaged Hadoop Framework
AWS CloudSearchManaged Search Service. e.g, elasticsearch

1.7 AWS Products - Orchestration

NameSummary
AWS Step functionsOrachestration for serverless workflows
AWS SQSQueue Service
AWS SNSNotification Service
AWS OpsWorksConfiguration management service. e.g, chef, puppet
AWS BeanstalkEnable you to easily deploy and manage your application in the cloud.
AWS CodeDeployAutomated Deployments
AWS SWFWorkflow Service for Coordinating Application Components
AWS Data PipelineOrchestration for Data-Driven Workflows

1.8 AWS Products - Enterprise

NameSummary
AWS WorkSpacesDesktops in the Cloud
AWS WorkDocsSecure Enterprise Storage and Sharing Service. e.g, Office 365, google doc
AWS WorkMailSecure Email and Calendaring Service. e.g, gmail and google calendar

1.9 AWS Products - Mobile

NameSummary
AWS CognitoUser Identity and App Data Synchronization
AWS Mobile AnalyticsMobile usage data analysis
AWS AppStreamLow Latency Application Streaming. e.g, video watching

1.10 AWS Products - More

NameSummary
AWS ElasticCacheCaching service. e.g, memcache, redis.
AWS Route53DNS
AWS CloudFrontCDN
AWS CloudHSMHardware Security Module
AWS CloudTrailUser Activity and Change Tracking
AWS SESSend emails
AWS GlacierArchive storage. Backend by tape
AWS CodeCommitHost Git repos
AWS Import/ExportImport your on-prem VMs to AWS public cloud
AWS DevPayOnline billing service
AWS AutoScalingMonitor your applications, then scale out or scale in
AWS LightsailVPS. More raw than EC2
AWS Direct ConnectDedicated Network Connection to AWS
AWS LexConversational interfaces for your applications

1.11 AWS VPC

NameSummary
IGW(Internet gateway)An Internet gateway enables your instances to connect to the Internet
VPG(Virtual Private Gateway)The Amazon VPC side of a VPN Connection
NAT GatewayEnable instances in a private subnet to connect to the internet or other AWS services
Customer GatewayYour side of a VPN Connection
NATNAT maps multiple private IP addresses to a single public IP address.
NAT InstanceEC2 instances provide Port Address Translation for non-EIP instances to access Internet via IGW
RouterRouters interconnect subnets and direct traffic between IGW, VPG, NAT instances and Subnets
SubnetA segment of a VPC’s IP address range where you can place groups of isolated resources
VPC PeeringA networking connection between two VPCs enable traffic by private IP
ClassicLinkAllow you to link an EC2-Classic instance to a VPC in your account, within the same region

1.12 More Resources

License: Code is licensed under MIT License.

http://docs.aws.amazon.com/cli/latest/index.html

https://www.expeditedssl.com/aws-in-plain-english

2 TODO RDS download snapshot to local

https://stackoverflow.com/questions/14916899/download-rds-snapshot