Skip to content

Commit 052ec4e

Browse files
authored
fix: Add output crn_list_object in Event Notification DA for mapping to Cloud Logs DA (#477)
1 parent 764f9cd commit 052ec4e

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

solutions/fully-configurable/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ When `existing_en_instance_crn` is passed, this solution ignores ALL other input
102102
| Name | Description |
103103
|------|-------------|
104104
| <a name="output_crn"></a> [crn](#output\_crn) | Event Notification crn |
105+
| <a name="output_crn_list_object"></a> [crn\_list\_object](#output\_crn\_list\_object) | A list of objects containing the CRN of the Event Notifications instance |
105106
| <a name="output_event_notification_instance_name"></a> [event\_notification\_instance\_name](#output\_event\_notification\_instance\_name) | Event Notification name |
106107
| <a name="output_guid"></a> [guid](#output\_guid) | Event Notification guid |
107108
| <a name="output_service_credential_secret_groups"></a> [service\_credential\_secret\_groups](#output\_service\_credential\_secret\_groups) | Service credential secret groups |

solutions/fully-configurable/outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ output "event_notification_instance_name" {
77
value = var.existing_event_notifications_instance_crn == null ? module.event_notifications[0].event_notification_instance_name : data.ibm_resource_instance.existing_en_instance[0].name
88
}
99

10+
# The output `crn_list_object` is needed to map EN as a dependency in Cloud Logs DA, for more information refer this - https://github.ibm.com/GoldenEye/issues/issues/14014
11+
output "crn_list_object" {
12+
description = "A list of objects containing the CRN of the Event Notifications instance"
13+
value = local.use_existing_en_instance ? [{ crn = var.existing_event_notifications_instance_crn }] : [{ crn = module.event_notifications[0].crn }]
14+
}
15+
1016
output "crn" {
1117
description = "Event Notification crn"
1218
value = local.use_existing_en_instance ? var.existing_event_notifications_instance_crn : module.event_notifications[0].crn

solutions/security-enforced/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ No resources.
7676
| Name | Description |
7777
|------|-------------|
7878
| <a name="output_crn"></a> [crn](#output\_crn) | Event Notification crn |
79+
| <a name="output_crn_list_object"></a> [crn\_list\_object](#output\_crn\_list\_object) | A list of objects containing the CRN of the Event Notifications instance |
7980
| <a name="output_event_notification_instance_name"></a> [event\_notification\_instance\_name](#output\_event\_notification\_instance\_name) | Event Notification name |
8081
| <a name="output_guid"></a> [guid](#output\_guid) | Event Notification guid |
8182
| <a name="output_service_credential_secret_groups"></a> [service\_credential\_secret\_groups](#output\_service\_credential\_secret\_groups) | Service credential secret groups |

solutions/security-enforced/outputs.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ output "crn" {
1212
value = module.event_notifications.crn
1313
}
1414

15+
# The output `crn_list_object` is needed to map EN as a dependency in Cloud Logs DA, for more information refer this - https://github.ibm.com/GoldenEye/issues/issues/14014
16+
output "crn_list_object" {
17+
description = "A list of objects containing the CRN of the Event Notifications instance"
18+
value = [{ crn = module.event_notifications.crn }]
19+
}
20+
1521
output "guid" {
1622
description = "Event Notification guid"
1723
value = module.event_notifications.guid

0 commit comments

Comments
 (0)