Skip to content

Getting Started

ChrisDowning edited this page Jul 13, 2020 · 8 revisions

Pre-requisites

The content of this tutorial assumes you are familiar with the following:

  • Basic Linux system administration commands
  • Using SSH to access remote servers, including creating/adding keys
  • Setting environment variables

About AWS Account Access Permissions

You must have access to an AWS account to follow this tutorial.

Using a temporary account

Using

Access should be via an IAM user login; using the root account credentials is not recommended. If you are working in a temporary or sandbox account, the "AdministratorAccess" IAM role will allow you to perform all of the required changes; this role will need to be applied to your user account, or can be attached to an EC2 instance. If you wish to use the AWS CLI with authentication as an IAM user, you will need to provide your API keys when configuring the CLI. If instead you wish to use a role attached to an EC2 instance, you will automatically have the required permissions once logged in to that instance, without the need for API keys.

If you are working within an organisationally-managed AWS account and do not have permissions to modify IAM users/roles, contact your account admin. They will be able to assist by either provisioning a role to your user account with appropriate (though likely more limited) permissions, or providing access to an EC2 instance which has the required role. Provisioning a static HPC cluster requires the ability to create EC2 instances and networking components, while deploying a dynamically scaling cluster additionally requires the creation of custom IAM policies and roles, which in turn allow instances to be created and terminated automatically.

All steps documented here can be completed without exceeding default AWS account quotas.

Using an EC2 instance as a bastion/entry-point

The process to create an EC2 instance via the AWS console is described here and the various methods of connecting to the instance are documented here.

For users wishing to interact with AWS using the CLI from their local device, API keys will need to be created for their IAM user account.

If you choose to use an instance profile rather than user-owned API keys, you will need to create a profile based on the desired IAM role - the process for completing these steps is described here.

Key points to be aware of:

  • The default username on an EC2 instance depends on the AMI - for marketplace images, the most common choices are likely to be ec2-user (for Amazon Linux and Amazon Linux 2) or centos for base CentOS images.
  • ...

Using the Cloud9 IDE as a bastion/entry-point

[Description of what C9 is, what its advantages are for this use-case]

[Description of creating a C9 instance in the console]

Clone this wiki locally