Skip to content

andresmascl/ubuntu-dev

 
 

Repository files navigation

Create an ubuntu EC2 instance for dev in AWS

Prerequisites

Requires Terraform v0.13.7. Use tfenv[https://github.com/tfutils/tfenv] for installation.

Creation

Edit the terraform.tfvars file and adjust the instance_type values.

Create a github certificate

Edit the config-vars.sh file and complete with your info:

  • GITHUB_CERT_PATH=~/.ssh/<name_of_my_cert> # << no .pub here
  • [email protected]:<path-to-my-repo>.git
  • ...etc.

Put the config-vars.sh file on your desktop

5 commands:

# installing dependencies and cloning repository
./main.sh

# the above plus deploying a kommander cluster
./main.sh deploy-kommander

# the above plus installing kaptain
./main.sh install-kaptain

# retrieve credentials for the SSH connection, Kommander UI, and Kaptain UI
./retrieve-credentials.sh

# connect via SSH
./connect.sh

Expert level stuff:

Multiple Workspaces

You can create multiple machines this way:

$ terraform workspace new dev-machine2
$ terraform init
$ terraform apply

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 68.0%
  • HCL 32.0%