-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Description
Event Streams supports creating service credentials for both public and private endpoints. However, the current Terraform module only supports creating service credentials for public endpoints. Support is needed to allow creation of service credentials for private endpoints as well.
Note: This is not about creating a service_endpoint on the instance itself, but about generating service credentials that are scoped to either public or private endpoints.
Currently, service credential creation in this module is handled using the following block:
resource "ibm_resource_key" "service_credentials" {
for_each = var.service_credential_names
name = each.key
role = each.value
resource_instance_id = ibm_resource_instance.es_instance.id
}
This creates credentials for the public endpoint by default. According to the Terraform documentation, specifying the parameters block with the appropriate value (e.g., {"service-endpoints": "private"}) allows the creation of service credentials for private endpoints.
The module should be updated to support passing the parameters argument to enable private endpoint service credentials.
New or affected modules
By submitting this issue, you agree to follow our Code of Conduct