In order to launch a new server on Amazon EC2 head to the 'Add server' form and follow the steps below:
- Choose 'Amazon' as the provider. In case you haven't done it yet, add an Amazon credential to the workspace now.
- Choose the region of Amazon where your server will be hosted. Usually you'll choose the one which is closest to the users of the server.
- Choose the availability zone of the region where your server will be hosted. Unless you have a compelling reason for not doing so, you can safely choose any of the offered options.
- Choose the size of your server. The size determines the number of virtual cpus of the server, the amount of ram, and the price you'll be charged for it. Quite often you can also choose the size of the disk attached to the server. In some cases though, the server size determines the disk type and size (e.g. 'm3.large' instances come with a 32GB SSD disk).
- Choose the operating system that your server will run. Moss will determine the latest official image on your behalf.
- Provide the name that your server will have at both Moss and Amazon (e.g. 'my-server' or 'www01'). Moss will also configure the hostname of the server using the value you provide here. Note that the name of the server must be unique in your Amazon region and within your workspace.
- Choose the timezone that Moss will set in your server. Moss suggests your current timezone as the default option, but select whichever you prefer.
- Choose the SSH Key to upload onto the server (if any). This is your public SSH key: Moss will upload this key onto the new server so that you can always log into it via SSH as user moss (can run privileged operations with sudo). You may choose to upload your key later on.
- Check the monitoring box if you want Moss to gather server metrics and send you an alert whenever it's down or under resource pressure. Usually you'll want to monitor your servers, unless they're for testing or similar environments.
Once you're done with the previous configuration, click the 'Add' button and wait until Moss finishes the process.
It may take a while depending on a number of factors, like the size of your server (e.g. shared cpu servers like 't2.micro' are way slower than dedicated cpu ones) or the state of the network, to name a few. Moss shows the last completed step at any moment so that you can track the progress of the process.
Awesome! You've launched a server on Amazon 😀. Moss has started to work for you. You'll receive a notification whenever the server is upgraded with security patches. If you also enabled server monitoring, you'll get an alert whenever it's down or any resource is under pressure (cpu, memory, disk or i-nodes). You can check the metrics Moss is gathering in the 'Metrics' tab of the server details.
Now you may want to keep adding servers or to create some websites on them.