1,234
edits
Changes
→Create firstvm
[[File:AWSCreateSecurityGroup.png|800px|border|center]]
== Create firstvm ops435-first VM ==
In AWS language an '''instance''' is what you've called a '''virtual machine''' in OPS245. An '''AMI''' is a '''pre-built disk image''' of an operating system, provided so that you don't need to install an operating system from scratch. The AMIs are typically provided by Amazon or the AWS community.
With an AWS Academy account you can see what AMIs are available on AWS, but your selection is severely limited. We'll only be using the '''Amazon Linux''' AMI. You'll find it quite familiar as it was originally based on CentOS.
* Use To create a new virtual machine you need to go to "Instances" and click "Launch Instances" . An unfortunate choice of words by Amazon. It sounds like that button should start an existing instance. It should have been called "Create Instance". The first time you go through this process try to concentrate on not getting overwhelmed by the available options and the unintelligible AWS lingo. You'll have lots of opportunities to deploy a pre-built better understand the available options. * Select the "Amazon Linux 2 AMI (HVM), SSD Volume Type" VMAMI. Not one * Don't use the "Review and Launch" button instead go through each of the other Amazon Linux AMIs7 steps.*Leave the t2.micro default checked and click Next.* Leave all the defaults under '''Instance type t2Details'''.micro - sort of kind of almost free*Don't change the storage configuration under '''Add Storage'''* Don't add any tags under '''Add Tags'''.* Security Create a new security group named "ops345first", leave the default SSH rule for the world in it. After you review your configuration and click "Launch" a popup will come up asking you for a key pair. It's important for you to understand what it's asking for. It is the same type of SSH key pair that you've created and used in the [[OPS245 Lab 7]]. Remember that your private key is yours, it's private to you, and not for anyone else to see. AWS is asking you to give them the public key which is the pair of the private key which you wish to use to log in to your new VM. In this case your private key is the effective equivalent of the root password. ** Create a new RSA key pair named ops345-first-key, save and download it as ops345-first-key.pem on your workstation under a new directory ~/keys/ssh/ Yes, that means AWS generated your private key and theoreticaly they could keep it, but they promise that they don't and that's almost certainly true. Once you donwload the private key and click "Launch Instances" - the only way to log into your new virtual machine is using the private key you saved. AWS does not provide the equivalent option of "reset your password" for instances that were already created.
* Differences between Amazon Linux and CentOS
** /etc/yum.repos.d/amzn2-core.repo