You would use Visual Studio Code to connect to your EC2. First you would have to Install the Remote SSH Extension in Visual Studio Code and then create a config file. Your config file would have to look like this:
# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host <name of EC2 instance>
HostName <Public IPv4 DNS>
IdentityFile <where you stored your key pair in you computer>/<key pair name>.pem
An alternative option is to use Cloud9 for a fully managed development environment.
It appears from your response that you are using CloudShell, but CloudShell cannot launch Docker.
Currently, the AWS CloudShell compute environment doesn't support Docker containers.
Are you accessing EC2 and executing commands?
First, access EC2 from your local PC via SSH or other means.
After that, Docker and other software must be installed.
Refer to the following instructions for SSH connection to EC2.
- How do I configure security groups and network ACLs when creating a VPC interface endpoint for endpoint services?AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 2 years ago
- How do I monitor my transit gateway and Site-to-Site VPN on a transit gateway using Network Manager?AWS OFFICIALUpdated 2 years ago