To install Debian 11 on Amazon Web Services (AWS), you can use the AWS Elastic Compute Cloud (EC2) service. Here are the general steps you can follow:
Register on AWS https://portal.aws.amazon.com/billing/signup
Log in to your AWS account and navigate to the EC2 dashboard.
Click on the “Launch Instance” button to start creating a new virtual machine.
Name your instance and in the search bar type “Debian 11”. Inside “Choose an Amazon Machine Image (AMI)” section, select the Debian 11 AMI x86.
Choose the type of instance you want to launch, and configure the settings as desired (such as the number of vCPUs and amount of memory). In this case, the free tier.
In the “Key pair (Login)” section, create a new “key pair.”
Name the key pair, select RSA and .pem.
The key pair .pem file will be downloaded. Make sure you keep this .pem secure and DO NOT LOSE IT!
Now, in Network Settings, create a new security group and allow SSH traffic only to “My IP”.
Configure Storage to 8GB gp2.
Click on the “Launch” button to launch the instance.
You may want to also open ports 80 (http) and 443 (https) only for your IP while you are building your stack. For that click on “View all Instances,” select your instance and click on security > Security Groups.
Click on your security group (ex: sg-05d7…).
Click on “edit inbound rules” and add HTTP > My IP and HTTPS > My IP. Save rules.
Once you have connected to your instance, you can start customizing it and installing any additional software you need.
Note: Make sure you are aware of the costs of running an instance on AWS, and shut down or terminate instances that you are no longer using to avoid unnecessary charges.
In the next post, I will show you how to connect to your instance using the private key file and the IP address or hostname of the instance using ssh.