Skip to content

Commit ffcf633

Browse files
sync examples from Provider v1.255.0
1 parent 89c6597 commit ffcf633

File tree

16 files changed

+268
-5
lines changed

16 files changed

+268
-5
lines changed
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_actiontrail_advanced_query_template` 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_actiontrail_advanced_query_template.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/actiontrail_advanced_query_template) | 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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
variable "name" {
2+
default = "terraform-example"
3+
}
4+
5+
provider "alicloud" {
6+
region = "cn-hangzhou"
7+
}
8+
9+
10+
resource "alicloud_actiontrail_advanced_query_template" "default" {
11+
simple_query = true
12+
template_name = "exampleTemplateName"
13+
template_sql = "*"
14+
}
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/Data_Transmission_Service(DTS)/101-dts-synchronization-job-docs-Example/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ resource "alicloud_vswitch" "example" {
3434
}
3535

3636
resource "alicloud_security_group" "example" {
37-
name = var.name
38-
vpc_id = alicloud_vpc.example.id
37+
security_group_name = var.name
38+
vpc_id = alicloud_vpc.example.id
3939
}
4040

4141
resource "alicloud_db_instance" "example" {
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_esa_origin_client_certificate` 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_esa_origin_client_certificate.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/esa_origin_client_certificate) | resource |
21+
| [alicloud_esa_site.resource_Site_OriginClientCertificate_example](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/esa_site) | resource |
22+
| [alicloud_esa_sites.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/data-sources/esa_sites) | data source |
23+
24+
## Inputs
25+
26+
No inputs.
27+
<!-- END_TF_DOCS -->
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
data "alicloud_esa_sites" "default" {
2+
plan_subscribe_type = "enterpriseplan"
3+
}
4+
5+
resource "alicloud_esa_site" "resource_Site_OriginClientCertificate_example" {
6+
site_name = "chenxin0116.site"
7+
instance_id = data.alicloud_esa_sites.default.sites.0.instance_id
8+
coverage = "overseas"
9+
access_type = "NS"
10+
}
11+
12+
resource "alicloud_esa_origin_client_certificate" "default" {
13+
site_id = alicloud_esa_site.resource_Site_OriginClientCertificate_example.id
14+
private_key = "-----BEGIN RSA PRIVATE KEY-----\nMIICXAIBAAKBgQC+7dgpkQifIqzOU6KNkFRjZtMZOoN7/ihNf/BrYcPhLQSkcPOf\nUsTP/qvH0u965GnYFiAoK3uWGQo9aCBuoawRFKNBa9ZpJVyVbamBWTBQ/Fxsforq\n9jJNR7OWA3fxvDxgwyEkv0qsnh1zaOkjyUlxFYwDiFxZ1/RHAj/SABCubQIDAQAB\nAoGADiobBUprN1MdOtldj98LQ6yXMKH0qzg5yTYaofzIyWXLmF+A02sSitO77sEp\nXxae+5b4n8JKEuKcrd2RumNoHmN47iLQ0M2eodjUQ96kzm5Esq6nln62/NF5KLuK\nJDw63nTsg6K0O+gQZv4SYjZAL3cswSmeQmvmcoNgArfcaoECQQDgYy6S91ZIUsLx\n6BB3tW+x7APYnvKysYbcKUEP8AutZSo4hdMfPQkOD0LwP5dWsrNippDWjNDiPZmt\nVKuZDoDdAkEA2dPxy1eQeJsRYTZmTWIuh3UY9xlL3G9skcSOM4LbFidroHWW9UDJ\nJDSSEMH2+/4quYTdPr28cj7RCjqL0brC0QJABXDCL1QJ5oUDLwRWaeCfTawQR89K\nySRexbXGWxGR5uleBbLQ9J/xOUMLd3HDRJnemZS6TElrwyCFOlukMXjVjQJBALr5\nQC0opmu/vzVQepOl2QaQrrM7VXCLfAfLTbxNcD0d7TY4eTFfQMgBD/euZpB65LWF\npFs8hcsSvGApTObjhmECQEydB1zzjU6kH171XlXCtRFnbORu2IB7rMsDP2CBPHyR\ntYBjBNVHIUGcmrMVFX4LeMuvvmUyzwfgLmLchHxbDP8=\n-----END RSA PRIVATE KEY-----\n"
15+
hostnames = [
16+
"www.example1.com",
17+
"www.example2.com",
18+
"www.example3.com"
19+
]
20+
origin_client_certificate_name = "exampleCertificate"
21+
certificate = "-----BEGIN CERTIFICATE-----\nMIICQTCCAaoCCQCFfdyqahygLzANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQGEwJj\nbjEQMA4GA1UECAwHYmVpamluZzEQMA4GA1UEBwwHYmVpamluZzERMA8GA1UECgwI\nYWxpY2xvdWQxEDAOBgNVBAsMB2FsaWJhYmExDTALBgNVBAMMBHRlc3QwHhcNMjAw\nODA2MTAwMDAyWhcNMzAwODA0MTAwMDAyWjBlMQswCQYDVQQGEwJjbjEQMA4GA1UE\nCAwHYmVpamluZzEQMA4GA1UEBwwHYmVpamluZzERMA8GA1UECgwIYWxpY2xvdWQx\nEDAOBgNVBAsMB2FsaWJhYmExDTALBgNVBAMMBHRlc3QwgZ8wDQYJKoZIhvcNAQEB\nBQADgY0AMIGJAoGBAL7t2CmRCJ8irM5Too2QVGNm0xk6g3v+KE1/8Gthw+EtBKRw\n859SxM/+q8fS73rkadgWICgre5YZCj1oIG6hrBEUo0Fr1mklXJVtqYFZMFD8XGx+\niur2Mk1Hs5YDd/G8PGDDISS/SqyeHXNo6SPJSXEVjAOIXFnX9EcCP9IAEK5tAgMB\nAAEwDQYJKoZIhvcNAQEFBQADgYEAavYdM9s5jLFP9/ZPCrsRuRsjSJpe5y9VZL+1\n+Ebbw16V0xMYaqODyFH1meLRW/A4xUs15Ny2vLYOW15Mriif7Sixty3HUedBFa4l\ny6/gQ+mBEeZYzMaTTFgyzEZDMsfZxwV9GKfhOzAmK3jZ2LDpHIhnlJN4WwVf0lME\npCPDN7g=\n-----END CERTIFICATE-----\n"
22+
}
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: 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_node_group_attachment` 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_node_group_attachment.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/eflo_node_group_attachment) | resource |
21+
22+
## Inputs
23+
24+
| Name | Description | Type | Default | Required |
25+
|------|-------------|------|---------|:--------:|
26+
| <a name="input_name"></a> [name](#input\_name) | Before executing this example, you need to confirm with the product team whether the resources are sufficient or you will get an error message with "Failure to check order before create instance" | `string` | `"terraform-example"` | no |
27+
<!-- END_TF_DOCS -->
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Before executing this example, you need to confirm with the product team whether the resources are sufficient or you will get an error message with "Failure to check order before create instance"
2+
variable "name" {
3+
default = "terraform-example"
4+
}
5+
6+
provider "alicloud" {
7+
region = "cn-hangzhou"
8+
}
9+
10+
11+
resource "alicloud_eflo_node_group_attachment" "default" {
12+
vswitch_id = "vsw-xxx"
13+
hostname = "attachment-example"
14+
login_password = "G7f$2kL9@vQx3Zp5*"
15+
cluster_id = "i118976xxxx"
16+
node_group_id = "i127582xxxx"
17+
node_id = "e01-cn-xxxx"
18+
vpc_id = "vpc-xxx"
19+
}
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)