Simple steps to get going.
- Create the Amazon Linux Instance via the Console, CloudFormation or the CLI.
- Log in to the instance using SSH or EC2 Instance Connect (browser).
- Run the following:
sudo yum upgrade -y
sudo yum install git -y
sudo rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
sudo yum install dotnet-sdk-3.1
-y
# optionally test the installation
cd ~
mkdir -p projects/hello && cd projects/hello
dotnet new console
dotnet run
# optionally remove the directory
cd ~
rm -rf projects

Photo by Luca Campioni on Unsplash