Skip to content

Commit

Permalink
update vpc and key pair
Browse files Browse the repository at this point in the history
  • Loading branch information
morsecodist committed Nov 30, 2021
1 parent a561484 commit e7d8185
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion terraform/modules/swipe-sfn-batch-queue/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ variable "mock" {

variable "vpc_id" {
type = string
default = ""
}

variable "batch_ec2_instance_types" {
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.2.0-beta
v0.2.1-beta

0 comments on commit e7d8185

Please sign in to comment.