Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ To create service credentials, access the Event Notifications service, and acces
|------|-------------|
| <a name="output_account_id"></a> [account\_id](#output\_account\_id) | The Event Notifications account ID. |
| <a name="output_crn"></a> [crn](#output\_crn) | The Event Notifications instance CRN. |
| <a name="output_en_private_endpoint"></a> [en\_private\_endpoint](#output\_en\_private\_endpoint) | Instance private endpoint URL |
| <a name="output_en_public_endpoint"></a> [en\_public\_endpoint](#output\_en\_public\_endpoint) | Instance public endpoint URL |
| <a name="output_event_notification_instance_name"></a> [event\_notification\_instance\_name](#output\_event\_notification\_instance\_name) | The name of the Event Notifications instance. |
| <a name="output_guid"></a> [guid](#output\_guid) | The globally unique identifier of the Event Notifications instance. |
| <a name="output_service_credentials_json"></a> [service\_credentials\_json](#output\_service\_credentials\_json) | The service credentials JSON map. |
Expand Down
10 changes: 10 additions & 0 deletions examples/basic/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,13 @@ output "guid" {
description = "Event Notification guid"
value = module.event_notification.guid
}

output "en_private_endpoint" {
description = "Event Notifications instance private endpoint URL"
value = module.event_notification.en_private_endpoint
}

output "en_public_endpoint" {
description = "Event Notifications instance public endpoint URL"
value = module.event_notification.en_public_endpoint
}
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ locals {

# Get account ID
account_id = ibm_resource_instance.en_instance.account_id

# Get public/private endpoint
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you mention its a temp workaround until https://github.ibm.com/Notification-Hub/adopters/issues/150 is implemented

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

en_private_endpoint = "https://private.${var.region}.event-notifications.cloud.ibm.com"
en_public_endpoint = "https://${var.region}.event-notifications.cloud.ibm.com"
}

resource "ibm_resource_instance" "en_instance" {
Expand Down
10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ output "service_credentials_object" {
value = local.service_credentials_object
sensitive = true
}

output "en_private_endpoint" {
description = "Instance private endpoint URL"
value = local.en_private_endpoint
}

output "en_public_endpoint" {
description = "Instance public endpoint URL"
value = local.en_public_endpoint
}
10 changes: 10 additions & 0 deletions solutions/fully-configurable/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,13 @@ output "service_credential_secret_groups" {
description = "Service credential secret groups"
value = length(local.service_credential_secrets) > 0 ? module.secrets_manager_service_credentials[0].secret_groups : null
}

output "en_private_endpoint" {
description = "Event Notifications instance private endpoint URL"
value = local.use_existing_en_instance ? null : module.event_notifications[0].en_private_endpoint
}

output "en_public_endpoint" {
description = "Event Notifications instance public endpoint URL"
value = local.use_existing_en_instance ? null : module.event_notifications[0].en_public_endpoint
}
5 changes: 5 additions & 0 deletions solutions/security-enforced/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ output "service_credential_secret_groups" {
description = "Service credential secret groups"
value = module.event_notifications.service_credential_secret_groups
}

output "en_private_endpoint" {
description = "Event Notifications instance private endpoint URL"
value = module.event_notifications.en_private_endpoint
}