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 dnf upgrade -y
sudo dnf install git -y
sudo rpm -Uvh https://packages.microsoft.com/config/centos/8/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