Amazon does not provide a custom username and password for ssh connections.
You can now use your instance’s public dns to connect to your server via ssh. Click the View your instances on the Instances page link in the last page in the popup and you will be redirected to the following page: Your instance is now launching and may take a few minutes.
There are community Linux AMIs that you can use, which have Node and other software pre-installed, but if you go with a clean installation and setup everything yourself, you’ll learn how to administer and maintain it more easily (we’ll cover the basics in a while).įinally, in the next screen just hit Launch. I chose 64bit due to some compatibility issues between the 32bit version and some versions of Node. I suggest Amazon Linux 64 bit, which is loosely based on CentOS and is tuned for security and performance in the cloud. Then choose an AMI (Amazon Machine Image). In the new popup, give a name to your instance, type any name for the key pair file and download it (more on it later). You can check the current prices for yourselves at Amazon.Īfter choosing a location, click the big “Launch Instance” button (an EC2 instance is similar to a regular unmanaged web-server). US East (Virginia) and US West (Oregon) were the cheapest ones when this article was published. The cost varies between locations (although it’s free for the first year). Login with your AWS account and goto the EC2 tab in the AWS Management Console.īefore launching your web-server, Amazon gives you the option to choose a location. Amazon calls its web servers instances, because you can have many of them running in parallel. In order to install and run Node, we first need to have a web server. Install Node.js and NPM on your Amazon EC2 instanceĬreate an Amazon Web Services (AWS) accountĬreate an Amazon Web Services (AWS) account (if you already have an account for shopping, you can use that).Create an Amazon Web Services (AWS) account.
Update: you can speed up the Node.js setup process by using my Node.js Amazon CloudFormation template. Confused about all those Amazon AWS products? Don’t know where to begin and how to start working with Node.js in the cloud? This step-by-step guide will help you setup a new Amazon AWS EC2 instance and install Node.js with NPM.