Skip to content

Commit c2d11a3

Browse files
sync examples from Provider v1.264.0
1 parent ae7eeb7 commit c2d11a3

File tree

13 files changed

+330
-1
lines changed

13 files changed

+330
-1
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Introduction
2+
3+
This example is used to create a `alicloud_cloud_firewall_private_dns` resource.
4+
5+
<!-- BEGIN_TF_DOCS -->
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Modules
13+
14+
No modules.
15+
16+
## Resources
17+
18+
| Name | Type |
19+
|------|------|
20+
| [alicloud_cloud_firewall_private_dns.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cloud_firewall_private_dns) | resource |
21+
| [alicloud_vpc.vpc](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/vpc) | resource |
22+
| [alicloud_vswitch.vpcvsw1](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/vswitch) | resource |
23+
| [alicloud_vswitch.vpcvsw2](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/vswitch) | resource |
24+
| [alicloud_account.current](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/data-sources/account) | data source |
25+
26+
## Inputs
27+
28+
| Name | Description | Type | Default | Required |
29+
|------|-------------|------|---------|:--------:|
30+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"terraform-example"` | no |
31+
<!-- END_TF_DOCS -->
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
variable "name" {
2+
default = "terraform-example"
3+
}
4+
5+
provider "alicloud" {
6+
region = "cn-hangzhou"
7+
}
8+
9+
data "alicloud_account" "current" {
10+
}
11+
12+
resource "alicloud_vpc" "vpc" {
13+
cidr_block = "172.16.0.0/12"
14+
vpc_name = "yqc-example-vpc"
15+
}
16+
17+
resource "alicloud_vswitch" "vpcvsw1" {
18+
vpc_id = alicloud_vpc.vpc.id
19+
zone_id = "cn-hangzhou-i"
20+
cidr_block = "172.16.3.0/24"
21+
}
22+
23+
resource "alicloud_vswitch" "vpcvsw2" {
24+
vpc_id = alicloud_vpc.vpc.id
25+
zone_id = "cn-hangzhou-j"
26+
cidr_block = "172.16.4.0/24"
27+
}
28+
29+
30+
resource "alicloud_cloud_firewall_private_dns" "default" {
31+
region_no = "cn-hangzhou"
32+
access_instance_name = var.name
33+
port = "53"
34+
primary_vswitch_id = alicloud_vswitch.vpcvsw1.id
35+
standby_dns = "4.4.4.4"
36+
primary_dns = "8.8.8.8"
37+
vpc_id = alicloud_vpc.vpc.id
38+
private_dns_type = "Custom"
39+
firewall_type = ["internet"]
40+
ip_protocol = "UDP"
41+
standby_vswitch_id = alicloud_vswitch.vpcvsw2.id
42+
domain_name_list = ["www.aliyun.com"]
43+
primary_vswitch_ip = "172.16.3.1"
44+
standby_vswitch_ip = "172.16.4.1"
45+
member_uid = data.alicloud_account.current.id
46+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}

quickstarts/ESA/101-esa-site-delivery-task-docs-Example/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "alicloud_esa_site_delivery_task" "default" {
3636
max_batch_size = "1000"
3737
}
3838

39-
data_center = "oversea"
39+
data_center = "global"
4040
discard_rate = "0.0"
4141
task_name = "dcdn-example-task"
4242
business_type = "dcdn_log_access_l1"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Introduction
2+
3+
This example is used to create a `alicloud_eflo_hyper_node` resource.
4+
5+
<!-- BEGIN_TF_DOCS -->
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Modules
13+
14+
No modules.
15+
16+
## Resources
17+
18+
| Name | Type |
19+
|------|------|
20+
| [alicloud_eflo_hyper_node.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/eflo_hyper_node) | resource |
21+
22+
## Inputs
23+
24+
| Name | Description | Type | Default | Required |
25+
|------|-------------|------|---------|:--------:|
26+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"terraform-example"` | no |
27+
<!-- END_TF_DOCS -->
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
variable "name" {
2+
default = "terraform-example"
3+
}
4+
5+
provider "alicloud" {
6+
region = "ap-southeast-7"
7+
}
8+
9+
resource "alicloud_eflo_hyper_node" "default" {
10+
zone_id = "ap-southeast-7a"
11+
machine_type = "efg3.GN9A.ch72"
12+
hpn_zone = "A1"
13+
server_arch = "bmserver"
14+
payment_duration = "1"
15+
payment_type = "Subscription"
16+
stage_num = "1"
17+
renewal_duration = 2
18+
renewal_status = "ManualRenewal"
19+
tags = {
20+
From = "Terraform"
21+
Env = "Product"
22+
}
23+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
## Introduction
2+
3+
This example is used to create a `alicloud_milvus_instance` resource.
4+
5+
<!-- BEGIN_TF_DOCS -->
6+
## Providers
7+
8+
| Name | Version |
9+
|------|---------|
10+
| <a name="provider_alicloud"></a> [alicloud](#provider\_alicloud) | n/a |
11+
12+
## Modules
13+
14+
No modules.
15+
16+
## Resources
17+
18+
| Name | Type |
19+
|------|------|
20+
| [alicloud_milvus_instance.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/milvus_instance) | resource |
21+
| [alicloud_vpc.defaultILXuit](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/vpc) | resource |
22+
| [alicloud_vswitch.defaultN80M7S](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/vswitch) | resource |
23+
24+
## Inputs
25+
26+
| Name | Description | Type | Default | Required |
27+
|------|-------------|------|---------|:--------:|
28+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"terraform-example"` | no |
29+
| <a name="input_region_id"></a> [region\_id](#input\_region\_id) | n/a | `string` | `"cn-hangzhou"` | no |
30+
| <a name="input_zone_id"></a> [zone\_id](#input\_zone\_id) | n/a | `string` | `"cn-hangzhou-j"` | no |
31+
<!-- END_TF_DOCS -->
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
variable "name" {
2+
default = "terraform-example"
3+
}
4+
5+
provider "alicloud" {
6+
region = "cn-hangzhou"
7+
}
8+
9+
variable "region_id" {
10+
default = "cn-hangzhou"
11+
}
12+
13+
variable "zone_id" {
14+
default = "cn-hangzhou-j"
15+
}
16+
17+
resource "alicloud_vpc" "defaultILXuit" {
18+
cidr_block = "172.16.0.0/12"
19+
}
20+
21+
resource "alicloud_vswitch" "defaultN80M7S" {
22+
vpc_id = alicloud_vpc.defaultILXuit.id
23+
zone_id = var.zone_id
24+
cidr_block = "172.16.1.0/24"
25+
vswitch_name = "milvus-example"
26+
}
27+
28+
29+
resource "alicloud_milvus_instance" "default" {
30+
zone_id = var.zone_id
31+
vswitch_ids {
32+
vsw_id = alicloud_vswitch.defaultN80M7S.id
33+
zone_id = alicloud_vswitch.defaultN80M7S.zone_id
34+
}
35+
db_admin_password = "Test123456@"
36+
components {
37+
type = "standalone"
38+
cu_num = "8"
39+
replica = "1"
40+
cu_type = "general"
41+
}
42+
instance_name = "镇远测试包年包月"
43+
db_version = "2.4"
44+
vpc_id = alicloud_vpc.defaultILXuit.id
45+
ha = false
46+
payment_type = "Subscription"
47+
multi_zone_mode = "Single"
48+
payment_duration_unit = "year"
49+
payment_duration = "1"
50+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
terraform {
2+
required_providers {
3+
alicloud = {
4+
source = "aliyun/alicloud"
5+
}
6+
}
7+
}

0 commit comments

Comments
 (0)