How to launch an Amazon EC2 instance (Linux Version)

I’ve come to learn that Amazon EC2  is the Beyonce’ of the AWS services. Its the most famous of the services offered, adaptable, multi-purpose and works hard for the money. Its pretty essential to all the other services and mastering it is the first step in becoming an AWS boss. Grab some tea, throw on a ambient sound mix and lets get started.amazon-linux

    1. First thing you need to do is log into log into the AWS service console. You can do it through a lab environment, or create an AWS account. If you’re a Prime junkie like me and already have an Amazon account, you can log in with this as well.Screenshot 2016-06-26 14.59.33
    2. Your going to click on EC2 button and then click LAUNCH INSTANCE on the EC2 dashboard.
    3. Next choose an AMI (Amazon Machine Image). Select the Amazon Linux AMI and then choose an instance type. Let’s go with the General Purpose one.Screenshot 2016-06-26 15.09.31Screenshot 2016-06-26 15.07.55
    4. No need to configure, add storage or configure the security group for now, so just go ahead and hit launch.
    5. You will now need to create a key pair for your instance. Name and download your key-pair. I suggest dragging the newly saved key-pair to your desktop and leaving it there for now. You’ve just created your instance! now comes the potentially tricky part.Screenshot 2016-06-26 15.14.14
    6. Take a sip of that tea and turn up the ocean waves! Check your security network setting to make sure your firewall is not on. Use  10.0.0.1 to change the setting on your router. ***Turn your firewall back on when you’re done***
    7. Now, (deep breath) open up that Mac Terminal. You can use Finder for this, if you’re like me and had no clue where it was.

      macScreenPythonVersion

      via mit.edu

    8. You’re going to need to change the file permissions by typing  chmod 600 //path/to/your/keys/keypair.pem if this doesn’t work try chmod 400 instead.
    9. Now that you’ve switched permissions, the command to connect your instance is ssh -i /path/to/your/keys/keypair.pem@ec2-user@public IP of your instance. It’ll look something like ssh -i /Users/Home//Desktop/testkeys.pem@ec2-user@123.123.123
    10. You should now be connected to your instance! If you are get up and do a little dance.

var _giphy = _giphy || []; _giphy.push({id: “NZcmEw1nikZG0”,w: 245, h: 245, clickthrough_url: “http://giphy.com/gifs/dancing-dance-happy-NZcmEw1nikZG0”});var g = document.createElement(“script”); g.type = “text/javascript”; g.async = true;g.src = (“https:” == document.location.protocol ? “https://” : “http://”) + “giphy.com/static/js/widgets/embed.js”;var s = document.getElementsByTagName(“script”)[0]; s.parentNode.insertBefore(g, s);

If you aren’t watch this tutorial  and try again.

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s