Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from flapp/configurable-instance-type
Browse files Browse the repository at this point in the history
Configurable instance type
  • Loading branch information
brikis98 authored Nov 2, 2017
2 parents 223be6d + d81a9ba commit 08658cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ module "clients" {
source = "./modules/nomad-cluster"

cluster_name = "${var.cluster_name}-client"
instance_type = "t2.micro"
instance_type = "${var.instance_type}"

# To keep the example simple, we are using a fixed-size cluster. In real-world usage, you could use auto scaling
# policies to dynamically resize the cluster in response to load.
Expand Down Expand Up @@ -187,4 +187,4 @@ data "aws_vpc" "default" {

data "aws_subnet_ids" "default" {
vpc_id = "${data.aws_vpc.default.id}"
}
}
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ variable "cluster_name" {
default = "nomad-example"
}

variable "instance_type" {
description = "What kind of instance type to use for the nomad clients"
default = "t2.micro"
}

variable "num_servers" {
description = "The number of server nodes to deploy. We strongly recommend using 3 or 5."
default = 3
Expand Down

0 comments on commit 08658cc

Please sign in to comment.