Skip to content

Commit

Permalink
chore: update advanced example to integrate ICL with multiple EN inst…
Browse files Browse the repository at this point in the history
…ances (#597)
  • Loading branch information
ocofaigh authored Oct 21, 2024
1 parent 0486682 commit c93aaf3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": "go.sum|^.secrets.baseline$",
"lines": null
},
"generated_at": "2024-10-09T22:34:49Z",
"generated_at": "2024-10-10T22:34:49Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down
26 changes: 22 additions & 4 deletions examples/advanced/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,22 @@ module "key_protect" {
# Event Notification
##############################################################################

module "event_notification" {
module "event_notification_1" {
source = "terraform-ibm-modules/event-notifications/ibm"
version = "1.13.0"
resource_group_id = module.resource_group.resource_group_id
name = "${var.prefix}-en"
name = "${var.prefix}-en-1"
tags = var.resource_tags
plan = "standard"
service_endpoints = "public"
region = var.region
}

module "event_notification_2" {
source = "terraform-ibm-modules/event-notifications/ibm"
version = "1.13.0"
resource_group_id = module.resource_group.resource_group_id
name = "${var.prefix}-en-2"
tags = var.resource_tags
plan = "standard"
service_endpoints = "public"
Expand Down Expand Up @@ -188,10 +199,17 @@ module "observability_instances" {
bucket_endpoint = module.buckets.buckets[local.metrics_bucket_name].s3_endpoint_direct
}
}
# integrate with multiple Event Notifcations instances
# (NOTE: This may fail due known issue https://github.com/IBM-Cloud/terraform-provider-ibm/issues/5734)
cloud_logs_existing_en_instances = [{
en_instance_id = module.event_notification.guid
en_instance_id = module.event_notification_1.guid
en_region = var.region
en_integration_name = "${var.prefix}-en"
en_integration_name = "${var.prefix}-en-1"
},
{
en_instance_id = module.event_notification_2.guid
en_region = var.region
en_integration_name = "${var.prefix}-en-2"
}]

# Activity Tracker targets
Expand Down

0 comments on commit c93aaf3

Please sign in to comment.