-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmain.tf
More file actions
39 lines (34 loc) · 1.57 KB
/
Copy pathmain.tf
File metadata and controls
39 lines (34 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##############################################################################
# Resource Group
##############################################################################
module "resource_group" {
source = "terraform-ibm-modules/resource-group/ibm"
version = "1.6.0"
# 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
}
##############################################################################
# Event Notification
##############################################################################
module "event_notifications" {
source = "terraform-ibm-modules/event-notifications/ibm"
version = "2.12.9"
resource_group_id = module.resource_group.resource_group_id
name = "${var.prefix}-en"
resource_tags = var.resource_tags
plan = "lite"
service_endpoints = "public-and-private"
region = var.region
}
##############################################################################
# Key Protect
##############################################################################
module "key_protect" {
source = "terraform-ibm-modules/kms-all-inclusive/ibm"
version = "5.6.5"
key_protect_instance_name = "${var.prefix}-key-protect"
resource_group_id = module.resource_group.resource_group_id
region = var.region
resource_tags = var.resource_tags
}