Skip to content

Commit 2d46a8a

Browse files
committed
quickstarts: add examples for CR, Data_works, SelectDB
1 parent 1f7158b commit 2d46a8a

File tree

39 files changed

+893
-0
lines changed

39 files changed

+893
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
## Introduction
2+
3+
This example is used to create a `alicloud_cr_chart_namespace` 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_cr_chart_namespace.example](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_chart_namespace) | resource |
21+
| [alicloud_cr_ee_instance.example](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_ee_instance) | resource |
22+
23+
## Inputs
24+
25+
| Name | Description | Type | Default | Required |
26+
|------|-------------|------|---------|:--------:|
27+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"example-name"` | no |
28+
<!-- END_TF_DOCS -->
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
variable "name" {
2+
default = "example-name"
3+
}
4+
resource "alicloud_cr_ee_instance" "example" {
5+
payment_type = "Subscription"
6+
period = 1
7+
renew_period = 0
8+
renewal_status = "ManualRenewal"
9+
instance_type = "Advanced"
10+
instance_name = var.name
11+
}
12+
13+
resource "alicloud_cr_chart_namespace" "example" {
14+
instance_id = alicloud_cr_ee_instance.example.id
15+
namespace_name = var.name
16+
}
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: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## Introduction
2+
3+
This example is used to create a `alicloud_cr_ee_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_cr_ee_instance.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_ee_instance) | resource |
21+
22+
## Inputs
23+
24+
No inputs.
25+
<!-- END_TF_DOCS -->
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
resource "alicloud_cr_ee_instance" "default" {
2+
payment_type = "Subscription"
3+
period = 1
4+
renew_period = 0
5+
renewal_status = "ManualRenewal"
6+
instance_type = "Advanced"
7+
instance_name = "terraform-example"
8+
}
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: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
## Introduction
2+
3+
This example is used to create a `alicloud_cr_ee_namespace` 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+
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
12+
13+
## Modules
14+
15+
No modules.
16+
17+
## Resources
18+
19+
| Name | Type |
20+
|------|------|
21+
| [alicloud_cr_ee_instance.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_ee_instance) | resource |
22+
| [alicloud_cr_ee_namespace.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_ee_namespace) | resource |
23+
| [random_integer.default](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/integer) | resource |
24+
25+
## Inputs
26+
27+
| Name | Description | Type | Default | Required |
28+
|------|-------------|------|---------|:--------:|
29+
| <a name="input_name"></a> [name](#input\_name) | n/a | `string` | `"terraform-example"` | no |
30+
<!-- END_TF_DOCS -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
variable "name" {
2+
default = "terraform-example"
3+
}
4+
5+
resource "random_integer" "default" {
6+
min = 10000
7+
max = 99999
8+
}
9+
10+
resource "alicloud_cr_ee_instance" "default" {
11+
payment_type = "Subscription"
12+
period = 1
13+
renew_period = 0
14+
renewal_status = "ManualRenewal"
15+
instance_type = "Advanced"
16+
instance_name = "${var.name}-${random_integer.default.result}"
17+
}
18+
19+
resource "alicloud_cr_ee_namespace" "default" {
20+
instance_id = alicloud_cr_ee_instance.default.id
21+
name = "${var.name}-${random_integer.default.result}"
22+
auto_create = false
23+
default_visibility = "PUBLIC"
24+
}
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_cr_ee_repo` 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+
| <a name="provider_random"></a> [random](#provider\_random) | n/a |
12+
13+
## Modules
14+
15+
No modules.
16+
17+
## Resources
18+
19+
| Name | Type |
20+
|------|------|
21+
| [alicloud_cr_ee_instance.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_ee_instance) | resource |
22+
| [alicloud_cr_ee_namespace.default](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_ee_namespace) | resource |
23+
| [alicloud_cr_ee_repo.example](https://registry.terraform.io/providers/aliyun/alicloud/latest/docs/resources/cr_ee_repo) | resource |
24+
| [random_integer.default](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/integer) | resource |
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 -->

0 commit comments

Comments
 (0)