-
Notifications
You must be signed in to change notification settings - Fork 6
/
main.tf
23 lines (21 loc) · 1.14 KB
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
##############################################################################
# Resource Group
##############################################################################
module "resource_group" {
source = "terraform-ibm-modules/resource-group/ibm"
version = "1.1.6"
# if an existing resource group is not set (null) create a new one using prefix
resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null
existing_resource_group_name = var.resource_group
}
module "hpcs_instance" {
source = "../.."
name = "${var.prefix}-hpcs"
region = var.region
tags = var.resource_tags
plan = "standard"
resource_group_id = module.resource_group.resource_group_id
auto_initialization_using_recovery_crypto_units = false
hsm_connector_id = var.hsm_connector_id
service_endpoints = var.service_endpoints
}