/terraform-poc

Exploration of Terraform hooked up through a UI to investigate the simplicity of provisioning to multiple clouds.

Primary LanguageJavaScript

Terraform Test App

Input terraform configurations into the frontend, such as

provider "aws" {
  access_key = "ACCESS_KEY_HERE"
  secret_key = "SECRET_KEY_HERE"
  region     = "us-east-1"
}

resource "aws_instance" "example" {
  ami           = "ami-0d729a60"
  instance_type = "t2.micro"
}

and watch the infrastructure spin up.

Enter your own access and secret keys, of course.

See provier-specific documentation here: https://www.terraform.io/docs/providers/

Up and Running

Docker

  • Ensure Docker is running
  • docker run -p 3000:3000 adamcaron/terraform-test

Navigate to localhost:3000/.

Localhost

  • git clone git@github.com:adamcaron/terraform-test.git
  • npm i
  • npm start

Navigate to localhost:3000/.

Cloud Specific Instructions

GCP

For Google Cloud Platform, follow these instructions to copy credentials .json file into /data/creds.json. (If running with Docker, Vim is available inside the container to create the file and paste the contents.) Load the config on the front end, specify a project name, and a unique instance name.