From 35aee6afc39265c0acf0ee58525ff57687e50b0c Mon Sep 17 00:00:00 2001 From: James Dubee Date: Wed, 12 Jul 2023 08:50:47 -0400 Subject: [PATCH] Add resource group to VSI validation (#5) --- vsi-validation/main.tf | 2 ++ vsi-validation/variables.tf | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/vsi-validation/main.tf b/vsi-validation/main.tf index 07f4b50..a253e0b 100644 --- a/vsi-validation/main.tf +++ b/vsi-validation/main.tf @@ -16,6 +16,8 @@ resource "ibm_is_instance" "validation_instance" { zone = var.subnet_zone keys = [var.ssh_key_id] + resource_group = var.resource_group + timeouts { create = "15m" update = "15m" diff --git a/vsi-validation/variables.tf b/vsi-validation/variables.tf index 964d3c8..d28ebbc 100644 --- a/vsi-validation/variables.tf +++ b/vsi-validation/variables.tf @@ -31,4 +31,9 @@ variable "subnet_zone" { variable "ssh_key_id" { description = "ID of SSH key to provision with" type = string +} + +variable "resource_group" { + description = "Resource group to provision VSI with" + type = string } \ No newline at end of file