Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 5c98552

Browse files
umarali-nagoorhkantare
authored andcommitted
Added index check at output level
1 parent ca727e4 commit 5c98552

File tree

14 files changed

+98
-15
lines changed

14 files changed

+98
-15
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ crash.log
1111
# control as they are data points which are potentially sensitive and subject
1212
# to change depending on the environment.
1313
#
14-
*.tfvars
14+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# IBM Cloud Observability - Terraform Module
22

3-
This is a collection of modules that make it easier to provision Observability services like logging, monitor and activity tracker on IBM Cloud Platform:
3+
This is a collection of modules that make it easier to provision observability services like logging, monitor and activity tracker on IBM Cloud Platform:
44
* [logging-logdna](modules/logging-logdna)
55
* [monitoring-sysdig](modules/monitoring-sysdig)
66
* [activity-tracker-logdna](modules/activity-tracker-logdna)

examples/activity-tracker-logdna-instance/input.tfvars

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,15 @@ Example Usage
88
99
tags = ["T1","T2"]
1010
11+
parameters = {
12+
"service_supertenant" = "<service_name>"
13+
"associated_logging_crn" = "<logdna_crn>"
14+
"provision_key" = "<provision_key>"
15+
}
16+
1117
******************************************************/
1218

1319
tags = ["T1", "T2"]
1420

15-
parameters = {
16-
"service_supertenant" = "schematics"
17-
"associated_logging_crn" = "1126fa03-7df6-4096-802a-8b1df3b06398"
18-
"provision_key" = "fcdb7641"
19-
}
21+
2022

examples/activity-tracker-logdna-instance/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ data "ibm_resource_group" "res_group" {
1111
}
1212

1313
module "activity-tracker_instance" {
14-
source = "terraform-ibm-modules/observability/ibm//modules/activity-tracker-logdna"
14+
//Uncomment the following line to point the source to registry level
15+
//source = "terraform-ibm-modules/observability/ibm//modules/activity-tracker-logdna"
1516

17+
source = "../../modules/activity-tracker-logdna"
1618
service_name = var.service_name
1719
plan = var.plan
1820
region = var.region

examples/logging-logdna-hippa-instance/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ data "ibm_resource_group" "logdna" {
1111
}
1212

1313
module "logdna_instance" {
14-
source = "terraform-ibm-modules/observability/ibm//modules/logging-logdna"
14+
//Uncomment the following line to point the source to registry level
15+
//source = "terraform-ibm-modules/observability/ibm//modules/logging-logdna"
1516

17+
source = "../../modules/logging-logdna"
1618
bind_resource_key = var.bind_resource_key
1719
service_name = var.service_name
1820
resource_group_id = data.ibm_resource_group.logdna.id
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#####################################################
2+
# logdna as a service
3+
# Copyright 2020 IBM
4+
#####################################################
5+
6+
/****************************************************
7+
Example Usage
8+
9+
* tags = ["T1","T2"]
10+
11+
* default_receiver is set to false by default.
12+
Set to true to collect platform metrics automatically through this instance in a region.
13+
14+
* API_AUTH is set to the authorization model that is enabled to authenticate with the IBM Cloud Monitoring service when you use Python
15+
scripts or the REST API. Valid values are: ANY, and IAM_ONLY.
16+
17+
parameters = {
18+
"service_supertenant" = "<service_name>"
19+
"associated_logging_crn" = "<logdna_crn>"
20+
"provision_key" = "<provision_key>"
21+
}
22+
23+
******************************************************/
24+
25+
tags = ["T1", "T2"]

examples/logging-logdna-instance/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ data "ibm_resource_group" "logdna" {
1111
}
1212

1313
module "logdna_instance" {
14-
source = "terraform-ibm-modules/observability/ibm//modules/logging-logdna"
14+
//Uncomment the following line to point the source to registry level
15+
//source = "terraform-ibm-modules/observability/ibm//modules/logging-logdna"
1516

17+
source = "../../modules/logging-logdna"
1618
bind_resource_key = var.bind_resource_key
1719
service_name = var.service_name
1820
resource_group_id = data.ibm_resource_group.logdna.id

examples/logging-logdna-instance/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ variable "service_name" {
1414
}
1515

1616
variable "plan" {
17-
description = "plan type"
17+
description = "plan type (14-day, 30-day, 7-day, hipaa-30-day and lite)"
1818
type = string
1919
}
2020

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#####################################################
2+
# sysdig instance creation
3+
# Copyright 2020 IBM
4+
#####################################################
5+
6+
/****************************************************
7+
Example Usage
8+
9+
tags = ["T1","T2"]
10+
11+
parameters = {
12+
"default_receiver" = false
13+
"API_AUTH" = "API_AUTH"
14+
}
15+
16+
******************************************************/
17+
18+
tags = ["T1", "T2"]
19+
20+

examples/sysdig-instance/main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ data "ibm_resource_group" "sysdig" {
1111
}
1212

1313
module "sysdig_instance" {
14-
source = "terraform-ibm-modules/observability/ibm//modules/monitoring-sysdig"
14+
//Uncomment the following line to point the source to registry level
15+
//source = "terraform-ibm-modules/observability/ibm//modules/monitoring-sysdig"
1516

17+
source = "../../modules/monitoring-sysdig"
1618
bind_resource_key = var.bind_resource_key
1719
service_name = var.service_name
1820
resource_group_id = data.ibm_resource_group.sysdig.id

0 commit comments

Comments
 (0)