Skip to content

[NEW] New resource: ovh_iam_log_subscription #1253

@anthonyroussel

Description

@anthonyroussel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions