Here are some quick notes on setting up remote debugging between Visual Studio and an AWS EC2 instance.
Steps
Visual Studio AWS Explorer -> EC2 Instances -> Right click in your instance name -> Open Remote Desktop
Make sure EC2 instance has VS Remote Tools installed. If not, download on your local machine, then copy/paste file over remote connection and install.
Visual Studio -> Debug -> Attach to Process -> enter the IP address of connection target (Public IPv4 DNS).
Tick show processes from all users
Enter Admin u/n and password. Found by connecting to EC2 instance inside aws console, selecting RDP client, and revieling password with contents of .pem file recieved from admin (e.g. mottmac-admin.pem).
attach to w3wp.exe
Created: 14-Oct-2022