From e7d8185c6c014e909856362e4eb37d11e85355c6 Mon Sep 17 00:00:00 2001 From: morsecodist Date: Tue, 30 Nov 2021 15:04:58 -0500 Subject: [PATCH] update vpc and key pair --- main.tf | 3 ++- terraform/modules/swipe-sfn-batch-queue/variables.tf | 1 - version | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.tf b/main.tf index ae644fa0..fbd08138 100644 --- a/main.tf +++ b/main.tf @@ -10,7 +10,7 @@ terraform { resource "aws_key_pair" "swipe_batch" { key_name = var.app_name public_key = var.batch_ssh_public_key - count = var.batch_ssh_public_key != "" ? 1 : 0 + count = var.batch_ssh_public_key == "" ? 1 : 0 } module "batch_subnet" { @@ -23,6 +23,7 @@ module "batch_queue" { source = "./terraform/modules/swipe-sfn-batch-queue" app_name = var.app_name mock = var.mock + vpc_id = var.vpc_id batch_ssh_key_pair_id = length(aws_key_pair.swipe_batch) > 0 ? aws_key_pair.swipe_batch[0].id : "" batch_subnet_ids = length(module.batch_subnet) > 0 ? module.batch_subnet[0].batch_subnet_ids : var.batch_subnet_ids batch_ec2_instance_types = var.batch_ec2_instance_types diff --git a/terraform/modules/swipe-sfn-batch-queue/variables.tf b/terraform/modules/swipe-sfn-batch-queue/variables.tf index a39b2a6a..79a6c857 100644 --- a/terraform/modules/swipe-sfn-batch-queue/variables.tf +++ b/terraform/modules/swipe-sfn-batch-queue/variables.tf @@ -12,7 +12,6 @@ variable "mock" { variable "vpc_id" { type = string - default = "" } variable "batch_ec2_instance_types" { diff --git a/version b/version index f7857972..8770ac91 100644 --- a/version +++ b/version @@ -1 +1 @@ -v0.2.0-beta \ No newline at end of file +v0.2.1-beta \ No newline at end of file