» alicloud_log_audit

SLS log audit exists in the form of log service app.

In addition to inheriting all SLS functions, it also enhances the real-time automatic centralized collection of audit related logs across multi cloud products under multi accounts, and provides support for storage, query and information summary required by audit. It covers actiontrail, OSS, NAS, SLB, API gateway, RDS, WAF, cloud firewall, cloud security center and other products.

» Example Usage

Basic Usage

resource "alicloud_log_audit" "example" {
    display_name = "tf-audit-test"
    aliuid = "12345678"
    variable_map = {
        "actiontrail_enabled" = "true",
        "actiontrail_ttl" = "180",
        "oss_access_enabled" = "true",
        "oss_access_ttl" = "180",
    }
}

Multiple accounts Usage

resource "alicloud_log_audit" "example" {
    display_name = "tf-audit-test"
    aliuid = "12345678"
    variable_map = {
        "actiontrail_enabled" = "true",
        "actiontrail_ttl" = "180",
        "oss_access_enabled" = "true",
        "oss_access_ttl" = "180",
    }
    multi_account = ["123456789123", "12345678912300123"]
}

» Argument Reference

The following arguments are supported:

» Attributes Reference

The following attributes are exported:

  • id - The ID of the log audit. It formats of display_name.

» Import

Log alert can be imported using the id, e.g.

$ terraform import alicloud_log_audit.example tf-audit-test