Skip to content

newcontext-oss/terraform-google-acme-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-google-acme-app

Terraform module for building out app server on Google Cloud Services

It builds compute instance(s) to run application services

Use

Call it as a module from another Terraform repository.

module "app" {
  source = "terraform-google-acme-app"

  db_internal_ip = "x.x.x.x"

  network_name   = "test-org"
  engineer_cidrs = "${var.engineer_cidrs}"

  ssh_public_key_filepath = "ubuntu.pub"
}

Testing

To build, validate and then destroy run these commands below:

bundle exec kitchen converge
bundle exec kitchen verify
bundle exec kitchen destroy

Prerequisites

  • Ruby 2.2 or greater
  • Terraform >= 0.10.2, < 0.12
  • gcloud command line utility (https://cloud.google.com/sdk/)
  • Google Cloud Project with a service account
  • Download service account credentials to: credentials.json
  • Create the module files directory: mkdir test/fixtures/tf_module/files
  • Create the SSH key: ssh-keygen -f test/fixtures/tf_module/files/insecure
  • Create a local Kitchen configuration file: kitchen.local.yml, add this content:
driver:
  variables:
    gcloud_project: <project-id>

About

Terraform module for building out app web server on Google Cloud Services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published