alicloud_vod_domain

Provides a VOD Domain resource.

For information about VOD Domain and how to use it, see What is Domain.

Example Usage

Basic Usage

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

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_vod_domain" "default" {
  domain_name = "example-${random_integer.default.result}.com"
  scope       = "domestic"
  sources {
    source_type    = "domain"
    source_content = "outin-c7405446108111ec9a7100163e0eb78b.oss-cn-beijing.aliyuncs.com"
    source_port    = "443"
  }
  tags = {
    Created = "terraform"
    For     = "example"
  }
}

Argument Reference

The following arguments are supported:

Block sources

The sources supports the following:

Attributes Reference

The following attributes are exported:

Import

VOD Domain can be imported using the id, e.g.

$ terraform import alicloud_vod_domain.example <domain_name>