EC2 (Elastic Compute Cloud)
Connecting an EC2 instance to a DevZero workspace.
Connecting to EC2 running in the private subnet of AWS VPC from your DevBox.
Walkthrough video
Architecture Diagram
Existing EC2
Step 1: Accessing EC2 from a DevBox
- Follow the Connecting to AWS guide.
- Go to Amazon EC2 > Instances > Your Instance.
- Click on Connect. You will see the commands for accessing it.
- Go to DevBox and make a copy of the key pair.
- Connect to EC2 machine:
New EC2 Machine
Step 1: Creating an EC2 Instance
- Follow the Connecting to AWS guide.
- Go to Amazon EC2 > Instances > Launch Instances.
- Enter the name of the instance.
- Use one of the supported linux distros.
- Choose the Instance type.
- Create a new key pair and save it.
- In the Network settings, click on edit and choose the VPC where your bastion host is running, the private subnet and the security group which allows inbound access to VPC.
Step 2: Accessing EC2 from a DevBox
- Go to the DevBox and make a copy of the key pair.
- Connect to the desired EC2 instance using ssh and the new key pair: