GitXplorerGitXplorer
s

devbox

public
0 stars
0 forks
1 issues

Commits

List of commits on branch main.
Verified
e876d9517107f7ba410826343567ce30cd35f9cc

Update documents.yaml

ssthulb committed 8 months ago
Verified
41e412eb97b2b5665f3d40517a1a962f739d74ad

Update devbox.yaml

ssthulb committed 8 months ago
Verified
5712d6aa97f51d034e9129b6f8c6d22e658b2976

Update documents.yaml

ssthulb committed 8 months ago
Verified
6f9837505ad4e297964a468b8333180306a96f5d

Update devbox.yaml

ssthulb committed a year ago
Verified
692c1c374d8ea5f09112b32e02141dba00471137

Update devbox.yaml

ssthulb committed a year ago
Verified
04b38fb759e7364b37c4012acd9e8e4e75ecbd56

Update documents.yaml

ssthulb committed a year ago

README

The README file for this repository.

devbox

devbox is the EC2 instance I use for development for all of my work. Right now it probably doesn't hold much value for anyone else.

What this does

This repo will create an EC2 instance and associated VPC in Amazon EC2 that you can use for development work. It will install:

  • Go
  • Rust
  • AWS CLI
  • Docker
  • Git

What this doesn't do

It doesn't create unicorns or configure your dev environment's dotfiles. Batteries aren't included.

Deployment

There's a number of steps to run through to deploy this in your AWS Account.

Prerequisites

  1. VSCode
  2. An AWS account
  3. An EC2 keypair (see: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/create-key-pairs.html)

Install

You will need to deploy the two AWS CloudFormation templates in the stacks folder. Start by deploying the documents.yaml file, once that has reached the status of CREATE_COMPLETE in the CloudFormation console, you can deploy devbox.yaml in the same way.

The devbox will take a while to provision with all of the software that it's told to install, you can follow along in the SSM console. After five minutes or so, your instance will be ready, you can go find the IP address for SSH connections in the EC2 console.

Connect VSCode to devbox

Install the VSCode Remote SSH extension in VSCode, and then follow the docs for it.

The AMI in use is Ubuntu, when VSCode asks you for the SSH command, you'll want to use something similar to this:

ssh ubuntu@<ip> -i <full path to keypair pem file>

Window's users will need to use an absolute path to the key, with forward slashes C:/Users/sthulb/Downloads/key.pem.