I want to know when should you use it? I was following this tutorial and it says that I must not use the None option.
Since I have this option, there has to be some use for it, right? I want to know in which scenario would I use it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
When you specify a keypair name on running an instance of an AMI, Amazon EC2 provides the public ssh key to the instance so that it can do things like add the key to $HOME/.ssh/authorized_keys for the default user. The default user depends on the AMI and may be “ec2-user” or “ubuntu” or even “root”.
However, it is not a requirement of AMIs that they use the ssh key, it is merely a convenient convention and one of the few ways to provide the person running the AMI with secure access to the instance.
If you don’t provide an ssh keypair name (i.e., you specify “None”) then you’ll need to figure out a different way to make the instance usable. For Amazon Linux and Ubuntu AMIs, you could use the CloudInit system and pass in a user-data script that sets up access through ssh or installs software that you want to run on the instance even if you don’t want ssh access.
Even if you don’t expect to need ssh access to an instance, it is often handy to have for tracking down problems when a system or the software running on it have issues.
So “None” is a valid option that might be somewhat practical to use in a few circumstances, but generally it is recommended that you provide a value, if just for emergencies.