File tree Expand file tree Collapse file tree 30 files changed +571
-0
lines changed
101-dcdn-domain-config-docs-Example
101-dcdn-domain-docs-Example
101-dcdn-kv-namespace-docs-Example
101-dcdn-waf-domain-docs-Example
101-dcdn-waf-policy-docs-Example
101-dcdn-waf-policy-domain-attachment-docs-Example
101-dcdn-waf-rule-docs-Example
SSL_Certificates_Service/101-ssl-certificates-service-certificate-docs-Example Expand file tree Collapse file tree 30 files changed +571
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!-- BEGIN_TF_DOCS -->
2
+ ## Introduction
3
+
4
+ This example is used to create a ` alicloud_dcdn_domain_config ` resource.
5
+
6
+ ## Providers
7
+
8
+ | Name | Version |
9
+ | ------| ---------|
10
+ | <a name =" provider_alicloud " ></a > [ alicloud] ( #provider\_ alicloud ) | n/a |
11
+
12
+ ## Resources
13
+
14
+ | Name | Type |
15
+ | ------| ------|
16
+ | [ alicloud_dcdn_domain.example] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_domain ) | resource |
17
+ | [ alicloud_dcdn_domain_config.filetype_based_ttl_set] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_domain_config ) | resource |
18
+ | [ alicloud_dcdn_domain_config.ip_allow_list_set] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_domain_config ) | resource |
19
+ | [ alicloud_dcdn_domain_config.referer_white_list_set] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_domain_config ) | resource |
20
+
21
+ ## Inputs
22
+
23
+ | Name | Description | Type | Default | Required |
24
+ | ------| -------------| ------| ---------| :--------:|
25
+ | <a name =" input_domain_name " ></a > [ domain\_ name] ( #input\_ domain\_ name ) | n/a | ` string ` | ` "alibaba-example.com" ` | no |
26
+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
1
+ variable "domain_name" {
2
+ default = " alibaba-example.com"
3
+ }
4
+
5
+ resource "alicloud_dcdn_domain" "example" {
6
+ domain_name = var. domain_name
7
+ scope = " overseas"
8
+ status = " online"
9
+ sources {
10
+ content = " 1.1.1.1"
11
+ type = " ipaddr"
12
+ priority = 20
13
+ port = 80
14
+ weight = 10
15
+ }
16
+ }
17
+
18
+ resource "alicloud_dcdn_domain_config" "ip_allow_list_set" {
19
+ domain_name = alicloud_dcdn_domain. example . domain_name
20
+ function_name = " ip_allow_list_set"
21
+ function_args {
22
+ arg_name = " ip_list"
23
+ arg_value = " 192.168.0.1"
24
+ }
25
+ }
26
+
27
+ resource "alicloud_dcdn_domain_config" "referer_white_list_set" {
28
+ domain_name = alicloud_dcdn_domain. example . domain_name
29
+ function_name = " referer_white_list_set"
30
+ function_args {
31
+ arg_name = " refer_domain_allow_list"
32
+ arg_value = " 110.110.110.110"
33
+ }
34
+ }
35
+
36
+ resource "alicloud_dcdn_domain_config" "filetype_based_ttl_set" {
37
+ domain_name = alicloud_dcdn_domain. example . domain_name
38
+ function_name = " filetype_based_ttl_set"
39
+ function_args {
40
+ arg_name = " ttl"
41
+ arg_value = " 300"
42
+ }
43
+ function_args {
44
+ arg_name = " file_type"
45
+ arg_value = " jpg"
46
+ }
47
+ function_args {
48
+ arg_name = " weight"
49
+ arg_value = " 1"
50
+ }
51
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ alicloud = {
4
+ source = " aliyun/alicloud"
5
+ }
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ <!-- BEGIN_TF_DOCS -->
2
+ ## Introduction
3
+
4
+ This example is used to create a ` alicloud_dcdn_domain ` resource.
5
+
6
+ ## Providers
7
+
8
+ | Name | Version |
9
+ | ------| ---------|
10
+ | <a name =" provider_alicloud " ></a > [ alicloud] ( #provider\_ alicloud ) | n/a |
11
+
12
+ ## Resources
13
+
14
+ | Name | Type |
15
+ | ------| ------|
16
+ | [ alicloud_dcdn_domain.example] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_domain ) | resource |
17
+
18
+ ## Inputs
19
+
20
+ | Name | Description | Type | Default | Required |
21
+ | ------| -------------| ------| ---------| :--------:|
22
+ | <a name =" input_domain_name " ></a > [ domain\_ name] ( #input\_ domain\_ name ) | n/a | ` string ` | ` "example.com" ` | no |
23
+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
1
+ variable "domain_name" {
2
+ default = " tf-example.com"
3
+ }
4
+ resource "alicloud_dcdn_domain" "example" {
5
+ domain_name = var. domain_name
6
+ scope = " overseas"
7
+ sources {
8
+ content = " 1.1.1.1"
9
+ port = " 80"
10
+ priority = " 20"
11
+ type = " ipaddr"
12
+ weight = " 10"
13
+ }
14
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ alicloud = {
4
+ source = " aliyun/alicloud"
5
+ }
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ <!-- BEGIN_TF_DOCS -->
2
+ ## Introduction
3
+
4
+ This example is used to create a ` alicloud_dcdn_er ` resource.
5
+
6
+ ## Providers
7
+
8
+ | Name | Version |
9
+ | ------| ---------|
10
+ | <a name =" provider_alicloud " ></a > [ alicloud] ( #provider\_ alicloud ) | n/a |
11
+
12
+ ## Resources
13
+
14
+ | Name | Type |
15
+ | ------| ------|
16
+ | [ alicloud_dcdn_er.default] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_er ) | resource |
17
+
18
+ ## Inputs
19
+
20
+ | Name | Description | Type | Default | Required |
21
+ | ------| -------------| ------| ---------| :--------:|
22
+ | <a name =" input_name " ></a > [ name] ( #input\_ name ) | n/a | ` string ` | ` "tf-example" ` | no |
23
+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
1
+ variable "name" {
2
+ default = " tf-example"
3
+ }
4
+ resource "alicloud_dcdn_er" "default" {
5
+ er_name = var. name
6
+ description = var. name
7
+ env_conf {
8
+ staging {
9
+ spec_name = " 5ms"
10
+ allowed_hosts = [" example.com" ]
11
+ }
12
+ production {
13
+ spec_name = " 5ms"
14
+ allowed_hosts = [" example.com" ]
15
+ }
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ alicloud = {
4
+ source = " aliyun/alicloud"
5
+ }
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ <!-- BEGIN_TF_DOCS -->
2
+ ## Introduction
3
+
4
+ This example is used to create a ` alicloud_dcdn_kv ` resource.
5
+
6
+ ## Providers
7
+
8
+ | Name | Version |
9
+ | ------| ---------|
10
+ | <a name =" provider_alicloud " ></a > [ alicloud] ( #provider\_ alicloud ) | n/a |
11
+
12
+ ## Resources
13
+
14
+ | Name | Type |
15
+ | ------| ------|
16
+ | [ alicloud_dcdn_kv.default] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_kv ) | resource |
17
+ | [ alicloud_dcdn_kv_namespace.default] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_kv_namespace ) | resource |
18
+
19
+ ## Inputs
20
+
21
+ | Name | Description | Type | Default | Required |
22
+ | ------| -------------| ------| ---------| :--------:|
23
+ | <a name =" input_name " ></a > [ name] ( #input\_ name ) | n/a | ` string ` | ` "tf-example" ` | no |
24
+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
1
+ variable "name" {
2
+ default = " terraform-example"
3
+ }
4
+
5
+ resource "alicloud_dcdn_kv_namespace" "default" {
6
+ description = var. name
7
+ namespace = var. name
8
+ }
9
+
10
+ resource "alicloud_dcdn_kv" "default" {
11
+ value = " example-value"
12
+ key = var. name
13
+ namespace = alicloud_dcdn_kv_namespace. default . namespace
14
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ alicloud = {
4
+ source = " aliyun/alicloud"
5
+ }
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ <!-- BEGIN_TF_DOCS -->
2
+ ## Introduction
3
+
4
+ This example is used to create a ` alicloud_dcdn_kv_namespace ` resource.
5
+
6
+ ## Providers
7
+
8
+ | Name | Version |
9
+ | ------| ---------|
10
+ | <a name =" provider_alicloud " ></a > [ alicloud] ( #provider\_ alicloud ) | n/a |
11
+
12
+ ## Resources
13
+
14
+ | Name | Type |
15
+ | ------| ------|
16
+ | [ alicloud_dcdn_kv_namespace.default] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_kv_namespace ) | resource |
17
+
18
+ ## Inputs
19
+
20
+ | Name | Description | Type | Default | Required |
21
+ | ------| -------------| ------| ---------| :--------:|
22
+ | <a name =" input_name " ></a > [ name] ( #input\_ name ) | n/a | ` string ` | ` "tf-example" ` | no |
23
+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
1
+ variable "name" {
2
+ default = " terraform-example"
3
+ }
4
+ resource "alicloud_dcdn_kv_namespace" "default" {
5
+ description = var. name
6
+ namespace = var. name
7
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ alicloud = {
4
+ source = " aliyun/alicloud"
5
+ }
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ <!-- BEGIN_TF_DOCS -->
2
+ ## Introduction
3
+
4
+ This example is used to create a ` alicloud_dcdn_waf_domain ` resource.
5
+
6
+ ## Providers
7
+
8
+ | Name | Version |
9
+ | ------| ---------|
10
+ | <a name =" provider_alicloud " ></a > [ alicloud] ( #provider\_ alicloud ) | n/a |
11
+
12
+ ## Resources
13
+
14
+ | Name | Type |
15
+ | ------| ------|
16
+ | [ alicloud_dcdn_domain.example] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_domain ) | resource |
17
+ | [ alicloud_dcdn_waf_domain.example] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_waf_domain ) | resource |
18
+
19
+ ## Inputs
20
+
21
+ | Name | Description | Type | Default | Required |
22
+ | ------| -------------| ------| ---------| :--------:|
23
+ | <a name =" input_domain_name " ></a > [ domain\_ name] ( #input\_ domain\_ name ) | n/a | ` string ` | ` "example.com" ` | no |
24
+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
1
+ variable "domain_name" {
2
+ default = " tf-example.com"
3
+ }
4
+
5
+ resource "alicloud_dcdn_domain" "example" {
6
+ domain_name = var. domain_name
7
+ scope = " overseas"
8
+ sources {
9
+ content = " 1.1.1.1"
10
+ port = " 80"
11
+ priority = " 20"
12
+ type = " ipaddr"
13
+ weight = " 10"
14
+ }
15
+ }
16
+
17
+ resource "alicloud_dcdn_waf_domain" "example" {
18
+ domain_name = alicloud_dcdn_domain. example . domain_name
19
+ client_ip_tag = " X-Forwarded-For"
20
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ alicloud = {
4
+ source = " aliyun/alicloud"
5
+ }
6
+ }
7
+ }
Original file line number Diff line number Diff line change
1
+ <!-- BEGIN_TF_DOCS -->
2
+ ## Introduction
3
+
4
+ This example is used to create a ` alicloud_dcdn_waf_policy ` resource.
5
+
6
+ ## Providers
7
+
8
+ | Name | Version |
9
+ | ------| ---------|
10
+ | <a name =" provider_alicloud " ></a > [ alicloud] ( #provider\_ alicloud ) | n/a |
11
+
12
+ ## Resources
13
+
14
+ | Name | Type |
15
+ | ------| ------|
16
+ | [ alicloud_dcdn_waf_policy.example] ( https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/dcdn_waf_policy ) | resource |
17
+
18
+ ## Inputs
19
+
20
+ | Name | Description | Type | Default | Required |
21
+ | ------| -------------| ------| ---------| :--------:|
22
+ | <a name =" input_name " ></a > [ name] ( #input\_ name ) | n/a | ` string ` | ` "tf_example" ` | no |
23
+ <!-- END_TF_DOCS -->
Original file line number Diff line number Diff line change
1
+ variable "name" {
2
+ default = " tf_example"
3
+ }
4
+ resource "alicloud_dcdn_waf_policy" "example" {
5
+ defense_scene = " waf_group"
6
+ policy_name = var. name
7
+ policy_type = " custom"
8
+ status = " on"
9
+ }
Original file line number Diff line number Diff line change
1
+ terraform {
2
+ required_providers {
3
+ alicloud = {
4
+ source = " aliyun/alicloud"
5
+ }
6
+ }
7
+ }
You can’t perform that action at this time.
0 commit comments