Skip to content

Commit 372394a

Browse files
author
sourabh
committed
adding example for aws root cause module.
1 parent c1b08a3 commit 372394a

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

aws/rootcause/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SumoLogic-AWS-CloudWatchMetrics
1+
# SumoLogic-AWS-RootCause
22

33
This module is used to create the SumoLogic AWS RootCause sources. Features include
44
- Create AWS IAM role or use an existing IAM role.

examples/aws_rootcause.tf

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
module "rootcause" {
2+
source = "../aws/rootcause"
3+
4+
create_collector = true
5+
collector_details = {
6+
"collector_name" = "Root Cause Collector",
7+
"description" = "This is a new description.",
8+
"fields" = {
9+
"TestCollector" = "MyValue"
10+
}
11+
}
12+
13+
create_inventory_source = true
14+
inventory_source_details = {
15+
"source_name" = "Inventory Source",
16+
"source_category" = "Labs/inventory",
17+
"description" = "This source is inventory source.",
18+
"paused" = false,
19+
"scan_interval" = 60000,
20+
"fields" = {
21+
"TestCollector" = "MyValue"
22+
},
23+
"sumo_account_id" = "926226587429",
24+
"collector_id" = "",
25+
"iam_role_arn" = "",
26+
limit_to_regions = ["us-east-1"],
27+
limit_to_namespaces = ["AWS/SNS"]
28+
}
29+
30+
create_xray_source = true
31+
xray_source_details = {
32+
"source_name" = "XRay Source",
33+
"source_category" = "Labs/xray",
34+
"description" = "This source is xray source.",
35+
"paused" = false,
36+
"scan_interval" = 60000,
37+
"fields" = {
38+
"TestCollector" = "MyValue"
39+
},
40+
"sumo_account_id" = "926226587429",
41+
"collector_id" = "",
42+
"iam_role_arn" = "",
43+
limit_to_regions = ["us-east-1"]
44+
}
45+
sumologic_organization_id = "0000000000123456"
46+
aws_iam_role_arn = ""
47+
}

0 commit comments

Comments
 (0)