This repository contains the AWS configuration to set up a remote development environment for grouporder.
-
First get Terraform, and install it on your computer (make sure it's on your PATH)
-
Clone this repository
-
Make sure you have a public key configured in the AWS region where you'd like to spin up a grouporder dev environment.
-
Load the private key that matches the uploaded key in your SSH agent. On Ubuntu, just run
ssh-add
to add your id_rsa. -
Make sure you have a
~/.aws/credentials
file. -
On the terminal (whether PyCharm built-in or regular) navigate to the folder where you've cloned this repository
-
Run
terraform init
-
(Optional) Create a
terraform.tfvars
file to specify both the AWS public key name, and the AWS region. -
Run
terraform apply
After running terraform apply
, you should have an ssh_config.out
file. Copy the contents of this file to ~/.ssh/config
:
cat ssh_config.out >> ~/.ssh/config
At this point you should be able to connect to all three hosts by
running ssh management
, ssh web
, or ssh database
.