Description
There is currently no way to manage OVHcloud IAM log subscriptions to Logs Data Platform (LDP) streams using Terraform.
However, the endpoints already exist in the OVH API:
POST /iam/log/subscription to create a subscription
GET /iam/log/subscription to list subscriptions
GET /iam/log/subscription/{subscriptionId} to get a subscription by ID
DELETE /iam/log/subscription/{subscriptionId} to delete a subscription by ID
Supporting this in Terraform would allow customers to subscribe OVHcloud IAM logs to an existing LDP stream through Infrastructure as Code.
Affected Resource(s) and/or Data Source(s)
ovh_iam_log_subscription (resource)
ovh_iam_log_subscription (data source - to import existing subscriptions)
Potential Terraform Configuration
resource "ovh_iam_log_subscription" "iam_default_to_ldp" {
stream_id = ovh_dbaas_logs_graylog_output_stream.iam_stream.stream_id
kind = "default"
}
Also same for:
ovh_me_audit_log_subscription - Account audit logs
ovh_me_log_subscription - Account access logs
ovh_cloud_project_kube_log_subscription - OVH MKS logs
Description
There is currently no way to manage OVHcloud IAM log subscriptions to Logs Data Platform (LDP) streams using Terraform.
However, the endpoints already exist in the OVH API:
POST /iam/log/subscriptionto create a subscriptionGET /iam/log/subscriptionto list subscriptionsGET /iam/log/subscription/{subscriptionId}to get a subscription by IDDELETE /iam/log/subscription/{subscriptionId}to delete a subscription by IDSupporting this in Terraform would allow customers to subscribe OVHcloud IAM logs to an existing LDP stream through Infrastructure as Code.
Affected Resource(s) and/or Data Source(s)
ovh_iam_log_subscription(resource)ovh_iam_log_subscription(data source - to import existing subscriptions)Potential Terraform Configuration
Also same for:
ovh_me_audit_log_subscription- Account audit logsovh_me_log_subscription- Account access logsovh_cloud_project_kube_log_subscription- OVH MKS logs