Amazon Elastic Compute Cloud (EC2) is the Amazon Web Service you use to create and run virtual machines in the cloud. Each virtual machine is called instance.
AMI (Amazon Machine Images) contains all the environment files and drivers for you to train on a GPU. It has cuDNN, TensorFlow with GPU support, Python 3, and all the other packages required for this course.
launch an instance
In other words, create a virtual machine on the cloud. AMIs are prebuilt virtual environment. Community AMIs are free. Marketplace AMIs are charged or free to try. I come to realize the target customers are power-hungry, storage-hungry users.
Steps:
- create AWS account
- EC2 Dashboard -> create instance -> launch instance -> Choose an Amazon Machine Image (AMI) -> Community AMIs -> search for “udacity-dl”
- filter by “GPU instances” -> g2.2xlarge -> Review and launch
- edit storage -> 32 GB. This is the space to hold the datasets.
- edit security groups -> create a new security group -> Security group name: jupyter -> Add rule: Custom TCP rule, Port Range: 8888, Anywhere: Source -> Review and launch
- launch -> launch without a key pair
- Note on the EC2 On-Demand Pricing page. For US West(Oregon), the base price for g2.2xlarge is $0.65 per hour. The running instances will be charged until you click “stop” (shutdown). The storage will be charged until you click “terminate” (delete).
- set AWS Billing Alarms and budget to avoid high-piling bills due to forgetting to turn off the instances.
- GPU EC2 limit increase request takes 2 or 3 days, which is painfully slow.
- Alternatively, I try to use “Free tier” instance which is specified here: Amazon Linux AMI 2016.09.1 (HVM), SSD Volume Type - ami-0b33d91d -> t2.micro (free tier eligible) -> launch -> create a new key pair -> MyKeyPair -> Download KeyPair. It is recommended that the keypair is stored in the .ssh folder by
mv ~/Downloads/MyKeyPair.pem ~/.ssh/MyKeyPair.pem
- After launching your instance, it’s time to connect to it. Restrict permissions to your private SSH key by
chmod 400 ~/.ssh/mykeypair.pem
- use ssh to connect:
ssh -i ~/.ssh/MyKeyPair.pem ec2-user@{IPv4 Public IP}
- this virtual machine is too simple to do useful tasks. It only preinstalls simple things:
python 2.7
,pip 6.1.1
. And it seems that you are not allowed to install new things or upgrade. I don’t find it particularly useful so far.
If the udacity AMI instance can be successfully created and initialized, the connection will be
ssh udacity@{IPv4 Public IP}
. Default password is “udacity”. Test the instance by:git clone https://github.com/udacity/deep-learning.git
cd deep-learning/intro-to-tensorflow/
source activate dl
jupyter notebook
Launch a WordPress Website
- EC2 dashboard -> launch instance -> AWS marketplace, search”wordpress” -> WordPress powered by Bitnami -> continue
- t2.micro(free tier eligible) -> Next -> Next, Add Tag -> Key: Name, Value: WordPress -> next -> review and launch -> launch -> launch without a key pair
- view instance. Wait until “Instance State: running, Status Checks: checks passed. Then copy and paste “IPv4 Public IP” to a new browser window to see the magic. Permalink: http://54.89.220.149/
- Go back to instances. Actions-> Instance settings -> get system log. Scroll down and find the password: 6LyeomW7L1F3
- Go back to WordPress site and log in by username: user, and password. Customize the site as you wish.
Register a Domain name
steps:
- Click here to open the Elastic IP part of the EC2 console in a new window and click “Allocate New Address” 34.205.189.152
- Elastic IP address (EIP) will be charged for $ 0.005/hr unless it is connected to running instances.
- Actions-> Associate Address -> Instance: your instance
- buy a domain name. I already bought one at google domain, which is equivalent to Amazone Route 53.
- The trick is that I not only need to go to google domain to redirect my domain name to the EIP, but also go to Blogspot setting page to check all the redirecting.
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDeleteAppreciating the persistence you put into your blog and detailed information you provide. "Dotnet Training in Marathahalli"
ReplyDeleteThanks a lot very much for the high quality and results-oriented help. I won’t think twice to endorse your blog post to anybody who wants and needs support about this area.
ReplyDeleteaws training in chennai
Amazon Web Services (AWS) is a branch of Amazon that offers cloud services through paid subscriptions. According to their website, AWS provides computing power, database storage, content delivery and other functionality to help businesses scale and grow.
ReplyDeleteIt is important to Learn from a best AWS Training Institute in Chennai.
Hello Dear,
ReplyDeleteTechnogeekscs Provide Best Amazon Web Services (AWS) is a suite of Aws cloud Python course Pune based computing services. Also known as on-demand computing platform.
Excellent Sharing. You have done a great job. I gathered lots of new information... AWS Training in Chennai | AWS Training institutes in Chennai
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteI am really happy with your blog because your article is very unique and powerful for new reader.aws training in bangalore
ReplyDelete