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 #6 from hashicorp/missing-ami-id
Browse files Browse the repository at this point in the history
Fix bug with AMI ID
  • Loading branch information
brikis98 authored Sep 19, 2017
2 parents e0d563f + 45ef75c commit 3ddcbc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ module "clients" {
max_size = "${var.num_clients}"
desired_capacity = "${var.num_clients}"

ami_id = "${var.ami_id}"
ami_id = "${var.ami_id == "" ? data.aws_ami.nomad_consul.image_id : var.ami_id}"
user_data = "${data.template_file.user_data_client.rendered}"

vpc_id = "${data.aws_vpc.default.id}"
Expand Down

0 comments on commit 3ddcbc6

Please sign in to comment.