Skip to content

Commit

Permalink
Catalog Template Updates (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsvihovec authored Mar 4, 2024
1 parent 35aee6a commit 22895eb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 9 deletions.
9 changes: 7 additions & 2 deletions vsi-validation/main.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
resource "ibm_is_instance" "validation_instance" {
provider = catalog
name = var.vsi_instance_name
image = var.vsi_id
profile = var.vpc_profile

catalog_offering {
version_crn = var.version_crn
plan_crn = var.plan_crn
}

primary_network_interface {
subnet = var.subnet_id
Expand All @@ -23,4 +28,4 @@ resource "ibm_is_instance" "validation_instance" {
update = "15m"
delete = "15m"
}
}
}
12 changes: 9 additions & 3 deletions vsi-validation/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ variable "vsi_instance_name" {
type = string
}

variable "vsi_id" {
description = "ID of VSI to deploy"
variable "version_crn" {
description = "CRN of the Catalog version to deploy"
type = string
}

variable "plan_crn" {
description = "CRN of the Catalog plan to deploy"
type = string
default = ""
}

variable "vpc_profile" {
description = "Profile of VPC"
type = string
Expand Down Expand Up @@ -36,4 +42,4 @@ variable "ssh_key_id" {
variable "resource_group" {
description = "Resource group to provision VSI with"
type = string
}
}
8 changes: 4 additions & 4 deletions vsi-validation/versions.tf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
terraform {
required_providers {
ibm = {
source = "IBM-Cloud/ibm"
version = "~> 1.39.0"
catalog = {
source = "jonwoodlief/catalog"
version = "~> 3.1.3"
}
}
}
}

0 comments on commit 22895eb

Please sign in to comment.