alicloud_config_delivery_channel

Provides an Alicloud Config Delivery Channel resource. You can receive configuration audit event changes by configuring OSS, MNS and SLS services provided by Alibaba Cloud. For information about Alicloud Config Delivery Channel and how to use it, see What is Delivery Channel.

Example Usage

provider "alicloud" {
  region = "cn-shanghai"
}

resource "alicloud_mns_topic" "example" {
  name = "test-topic"
}

# Example for create a MNS delivery channel
resource "alicloud_config_delivery_channel" "example" {
  description                      = "channel_description"
  delivery_channel_name            = "channel_name"
  delivery_channel_assume_role_arn = "acs:ram::11827252********:role/aliyunserviceroleforconfig"
  delivery_channel_type            = "MNS"
  delivery_channel_target_arn      = format("acs:oss:cn-shanghai:11827252********:/topics/%s", alicloud_mns_topic.example.name)
  delivery_channel_condition       = <<EOF
  [
      {
          "filterType":"ResourceType",
          "values":[
              "ACS::CEN::CenInstance",
              "ACS::CEN::Flowlog",
          ],
          "multiple":true
      }
  ]
    EOF
}
  [
      {
          "filterType":"ResourceType",
          "values":[
              "ACS::CEN::CenInstance",
              "ACS::CEN::Flowlog",
          ],
          "multiple":true
      }
  ]
    EOF
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Alicloud Config Delivery Channel can be imported using the id, e.g.

$ terraform import alicloud_config_delivery_channel.example cdc-49a2ad756057********