Skip to content

Commit a2d09ac

Browse files
CCM-8197: Cross Account Observability
1 parent f9c41d5 commit a2d09ac

2 files changed

Lines changed: 24 additions & 1 deletion

File tree

example/main.tf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
module "observability_datasource" {
2+
source = "../infrastructure/modules/observability-datasource"
3+
4+
project = "example-project"
5+
environment = "dev"
6+
component = "observability"
7+
aws_account_id = "123456789012"
8+
region = "us-east-1"
9+
name = "example-datasource"
10+
oam_sink_id = "example-sink-id"
11+
observability_account_id = "098765432109"
12+
default_tags = { Owner = "team-example", Environment = "dev" }
13+
resource_types = [
14+
"AWS::CloudWatch::Metric",
15+
"AWS::Logs::LogGroup"
16+
]
17+
log_group_configuration = {
18+
filter = "example-log-group-filter"
19+
}
20+
metric_configuration = {
21+
filter = "example-metric-filter"
22+
}
23+
}

infrastructure/modules/observability-datasource/locals.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
module = "eventpub"
2+
module = "obersvability-datasource"
33

44
csi = replace(
55
format(

0 commit comments

Comments
 (0)