The step by step instruction here show you how to create Centos 7 instance in AWS cloud.
1. login to AWS console
https://console.aws.amazon.com/
2. create instance
in EC2 Dashboard click Launch instance
search and choose a centos 7 image
choose “t2.micro” type
leave the rest as default in first step page
create new security group, in bound rule only allow “your public ip/32” ssh traffic instead allow everyone (0.0.0.0/32)
how to find your public ip:
https://whatismyipaddress.com/
create new key (demo.pem) and download to your desktop.
3. ssh to instance after it is ready
ssh -i Download/demo.pem centos@54.80.203.62
make sure Download/demo.pem is only readable by you before use it.
chmod 600 Download/demo.pem
if it is different OS instance, default ssh login username is different:
Centos: centos
Ubuntu: admin
Redhat/amazon linux: ec2-user
4. update
sudo yum update
5. reboot server
sudo reboot