Skip to content

turnbullpress/tf_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS API service module for Terraform

A lightweight API service module for The Terraform Book.

Usage

variable "api_instance_count" {
  default = 5
}

module "api" {
  source             = "github.com/turnbullpublishing/tf_api"
  environment        = "${var.environment}"
  vpc_id             = "${module.vpc.vpc_id}"
  public_subnet_ids  = "${module.vpc.public_subnet_ids}"
  private_subnet_ids = "${module.vpc.private_subnet_ids}"
  region             = "${var.region}"
  key_name           = "${var.key_name}"
  api_instance_count = "${var.api_instance_count}"
}

output "api_elb_address" {
  value = "${module.api.api_elb_address}"
}

output "api_host_addresses" {
  value = ["${module.api.api_host_addresses}"]
}

Assumes you're building your API service inside a VPC created from this module.

See interface.tf for additional configurable variables.

License

MIT

About

An API application module for The Terraform Book

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published