-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add support to Observability DA to create EN destination, topic… #181
base: main
Are you sure you want to change the base?
Conversation
… and subscription for Cloud Logs
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
/run pipeline |
2 similar comments
/run pipeline |
/run pipeline |
@@ -119,12 +119,17 @@ locals { | |||
parsed_log_metrics_bucket_name = var.existing_cloud_logs_metrics_bucket_crn != null ? split(":", var.existing_cloud_logs_metrics_bucket_crn) : [] | |||
existing_cloud_log_metrics_bucket_name = length(local.parsed_log_metrics_bucket_name) > 0 ? local.parsed_log_metrics_bucket_name[1] : null | |||
|
|||
# Event Notifications | |||
parsed_existing_en_instance_crn = var.existing_en_instance_crn != null ? split(":", var.existing_en_instance_crn) : [] | |||
existing_en_guid = length(local.parsed_existing_en_instance_crn) > 0 ? local.parsed_existing_en_instance_crn[7] : null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can use the crn_parser
module to do this like here
} | ||
|
||
resource "ibm_en_topic" "en_topic" { | ||
count = var.existing_en_instance_crn != null && var.cloud_logs_provision == true ? 1 : 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
count = var.existing_en_instance_crn != null && var.cloud_logs_provision == true ? 1 : 0 | |
count = var.existing_en_instance_crn != null && var.cloud_logs_provision ? 1 : 0 |
} | ||
|
||
resource "ibm_en_subscription_email" "email_subscription" { | ||
count = var.existing_en_instance_crn != null && var.cloud_logs_provision == null && length(var.cloud_logs_en_email_list) > 0 ? 1 : 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
count = var.existing_en_instance_crn != null && var.cloud_logs_provision == null && length(var.cloud_logs_en_email_list) > 0 ? 1 : 0 | |
count = var.existing_en_instance_crn != null && var.cloud_logs_provision && length(var.cloud_logs_en_email_list) > 0 ? 1 : 0 |
/run pipeline |
Description
#179
Release required?
x.x.X
)x.X.x
)X.x.x
)Release notes content
Add support to Observability DA to create EN destination, topic and subscription for Cloud Logs
Run the pipeline
If the CI pipeline doesn't run when you create the PR, the PR requires a user with GitHub collaborators access to run the pipeline.
Run the CI pipeline when the PR is ready for review and you expect tests to pass. Add a comment to the PR with the following text:
Checklist for reviewers
For mergers