Cloud Computing EC2 Setup
To create your ec2 service,
- Check your IPv4 in session ‘Before you start’ → Click ‘Check IP’. https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html
- Sometimes if you want a GPU support, you may need to request a limit increase. https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html May take few days or less to process your request.
- Click services → launch instance → choose an AMI (suggestion: Deep Learning AMI (Ubuntu) 18.04) → choose an instance type (GPU instance: g4dn.4xlarge, have to request limit increase for ‘Running Dedicated g4dn Hosts’).
- → Configure Security Group. Remember to enter your IPv4 to make your ssh quicker.
- Review and Launch.
To ssh ec2 service,
- To ssh into your ec2 service, you need pem key and Public DNS (IPv4) which can be found from your launched instances.
- Change to the directory where your pem key exists.
- Run command
chmod 400 aws-ec2-leo.pem
.
- SSH via,
ssh -i aws-ec2-leo.pem ubuntu@ec2-xx-xxx-xxx-xxx.eu-west-2.compute-amazonaws.com
- Upload your file to ec2 instance by
scp -i key.pem [TARGET] ubuntu@PublicDNS
.
References