AWS stands for Amazon Web Services. This page is going to introduce how to build an AWS EC2 Instance step by step.
1. ? ?Create an Amazon account @?Create AWS Account
2. ? ?Choose EC2 @ AWS - Services, more info about detail definition of these services names can be viewed @?AWS in Plain English
3. ? ?Choose region as where is near you
4. ? ?Click on Launch Instance to launch an instance - Choose OS(ubuntu/linux/unix) - Set up IAM role in some cases - Add storage - Create name tag - Configure Security Group - Select key pair
5. ? ?Security Group(name can be changed)
inbound - http : HTTP - TCP - 80 - 0.0.0.0/0
inbound - http: HTTPS - TCP - 443 - 0.0.0.0/0
meteor-ssh: SSH - TCP - 22 - 0.0.0.0/0
Appropriate security group can be used to resolve the problem of [operation time out at port 22]
6. ? ?Key Pair
Use existed key pair or create a new one, download the .pem?file to be added into .aws folder.
7. ? ?Now you can view the instances you have launched and their detail info
Connect to EC2 instance from terminal
1. ? ?ssh -i keyPair.pem username@ip_address
2. ? ?username can be checked at?AWS instance username
Amazon Linux AMI - ec2-user.
RHEL5 AMI - root/ec2-user
Ubuntu AMI - ubuntu
Fedora AMI - fedora/ec2-user
SUSE Linux - root/ec2-user
Connect to EC2 instance by AWS CLI @?Official Site of CLI?and?AWS CLI
1. ? ?Configuration and Credential Files @?Configuring AWS CLI
2. ? ?SASH(Secure Shell wrapper) used to replace ssh @?SASH