Make an AWS Account

First, make an AWS account.

Create an EC2 Instance

Navigate to EC2 in the AWS dashboard and select instances.

Create a t2.micro EC2 instance with the Amazon Linux distribution.

Create a new key pair.

Since I am using Windows to write this post, create a PPK to use PuTTY.

Configure PuTTY

Configure PuTTY to:

  1. Use username@dnsname in address
  • Note: Default username is ec2-user
  1. Add private key for authentication under SSH credentials
  2. Save configuration for easy reuse

Connect to Instance

After clicking OK, a session should be created with your new EC2 instance.

Login prompt looks like:

[ec2-user@ip-ip-address ~]$

Verify aws

which aws

The advantage to using the Amazon Linux is that the aws cli tool is already installed.

aws s3 ls

Gives us no results because we still need to configure aws. We will do this later when we create another IAM user.

Install asdf

sudo dnf install git
sudo dnf install make automake gcc gcc-c++ kernel-devel
sudo dnf install bzip2 ncurses libffi readline
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
which asdf
asdf --version

Install Python

asdf plugin add python
asdf list-all python
asdf install python 3.11.0
asdf global python 3.11.0

Verify Python

which python
python --version