Skip to content

Commit 8c7e0cc

Browse files
authored
Merge pull request #348 from sbercloud-terraform/release-1.12.6
updated rds
2 parents 7ef1ec1 + fe9fd09 commit 8c7e0cc

File tree

124 files changed

+7277
-16487
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

124 files changed

+7277
-16487
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
subcategory: "Cloud Container Engine (CCE)"
3+
layout: "huaweicloud"
4+
page_title: "HuaweiCloud: huaweicloud_cce_cluster_certificate"
5+
description: ""
6+
---
7+
8+
# sbercloud_cce_cluster_certificate
9+
10+
Use this data source to get the certificate of a CCE cluster within HuaweiCloud.
11+
12+
## Example Usage
13+
14+
```hcl
15+
variable "cluster_id" {}
16+
17+
data "sbercloud_cce_cluster_certificate" "test" {
18+
cluster_id = var.cluster_id
19+
duration = 30
20+
}
21+
```
22+
23+
## Argument Reference
24+
25+
The following arguments are supported:
26+
27+
* `region` - (Optional, String) Specifies the region in which to obtain the CCE cluster certificate. If omitted, the
28+
provider-level region will be used.
29+
30+
* `cluster_id` - (Required, String) Specifies the cluster ID which the cluster certificate in.
31+
32+
* `duration` - (Required, Int) Specifies the duration of the cluster certificate. The unit is days. The valid value in
33+
[1, 1827]. If the input value is -1, it will use the maximum 1827 as `duration` value.
34+
35+
## Attribute Reference
36+
37+
In addition to all arguments above, the following attributes are exported:
38+
39+
* `id` - The data source ID in UUID format.
40+
41+
* `kube_config_raw` - Raw Kubernetes config to be used by kubectl and other compatible tools.
42+
43+
* `current_context` - The current context of the cluster certificate.
44+
45+
* `clusters` - The clusters information of the cluster certificate.
46+
The [clusters](#CCECluster_clusters) structure is documented below.
47+
48+
* `users` - The users information of cluster the certificate.
49+
The [users](#CCECluster_users) structure is documented below.
50+
51+
* `contexts` - The contexts information of the cluster certificate.
52+
The [contexts](#CCECluster_contexts) structure is documented below.
53+
54+
<a name="CCECluster_clusters"></a>
55+
The `clusters` block supports:
56+
57+
* `name` - The cluster name of the cluster certificate.
58+
59+
* `server` - The server address of the cluster certificate.
60+
61+
* `certificate_authority_data` - The certificate authority data of the cluster certificate.
62+
63+
* `insecure_skip_tls_verify` - Whether insecure skip tls verify of the cluster certificate.
64+
65+
<a name="CCECluster_users"></a>
66+
The `users` block supports:
67+
68+
* `name` - The user name of the cluster certificate. The value is fixed to `user`.
69+
70+
* `client_certificate_data` - The client certificate data of the cluster certificate.
71+
72+
* `client_key_data` - The client key data of the cluster certificate.
73+
74+
<a name="CCECluster_contexts"></a>
75+
The `contexts` block supports:
76+
77+
* `name` - The context name of the cluster certificate.
78+
79+
* `cluster` - The context cluster of the cluster certificate.
80+
81+
* `user` - The context user of the cluster certificate.

docs/resources/rds_mysql_account.md

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
---
2+
subcategory: "Relational Database Service (RDS)"
3+
layout: "sbercloud"
4+
page_title: "SberCloud: sbercloud_rds_mysql_account"
5+
description: ""
6+
---
7+
8+
# sbercloud_rds_mysql_account
9+
10+
Manages RDS Mysql account resource within SberCloud.
11+
12+
## Example Usage
13+
14+
```hcl
15+
variable "instance_id" {}
16+
variable "account_password" {}
17+
18+
resource "sbercloud_rds_mysql_account" "test" {
19+
instance_id = var.instance_id
20+
name = "test"
21+
password = var.account_password
22+
}
23+
```
24+
25+
## Argument Reference
26+
27+
The following arguments are supported:
28+
29+
* `region` - (Optional, String, ForceNew) The region in which to create the rds account resource. If omitted, the
30+
provider-level region will be used. Changing this creates a new resource.
31+
32+
* `instance_id` - (Required, String, ForceNew) Specifies the rds instance id. Changing this will create a new resource.
33+
34+
* `name` - (Required, String, ForceNew) Specifies the username of the db account. Only lowercase letters, digits,
35+
hyphens (-), and underscores (_) are allowed. Changing this will create a new resource.
36+
+ If the database version is MySQL 5.6, the username consists of 1 to 16 characters.
37+
+ If the database version is MySQL 5.7 or 8.0, the username consists of 1 to 32 characters.
38+
39+
* `password` - (Required, String) Specifies the password of the db account. The parameter must be 8 to 32 characters
40+
long and contain only letters(case-sensitive), digits, and special characters(~!@#$%^*-_=+?,()&). The value must be
41+
different from `name` or `name` spelled backwards.
42+
43+
* `hosts` - (Optional, List, ForceNew) Specifies the IP addresses that are allowed to access your DB instance.
44+
+ If the IP address is set to %, all IP addresses are allowed to access your instance.
45+
+ If the IP address is set to 10.10.10.%, all IP addresses in the subnet 10.10.10.X are allowed to access
46+
your instance.
47+
+ Multiple IP addresses can be added.
48+
49+
Changing this parameter will create a new resource.
50+
51+
* `description` - (Optional, String) Specifies remarks of the database account. The parameter must be 1 to 512
52+
characters long and is supported only for MySQL 8.0.25 and later versions.
53+
54+
## Attribute Reference
55+
56+
In addition to all arguments above, the following attributes are exported:
57+
58+
* `id` - The resource ID of account which is formatted `<instance_id>/<name>`.
59+
60+
## Timeouts
61+
62+
This resource provides the following timeouts configuration options:
63+
64+
* `create` - Default is 30 minutes.
65+
* `update` - Default is 30 minutes.
66+
* `delete` - Default is 30 minutes.
67+
68+
## Import
69+
70+
RDS account can be imported using the `instance_id` and `name` separated by a slash, e.g.:
71+
72+
```bash
73+
$ terraform import sbercloud_rds_mysql_account.account_1 <instance_id>/<name>
74+
```
75+
76+
Note that the imported state may not be identical to your resource definition, due to some attributes missing from the
77+
API response, security or some other reason. The missing attributes include: `password`. It is generally recommended
78+
running `terraform plan` after importing the RDS Mysql account. You can then decide if changes should be applied to
79+
the RDS Mysql account, or the resource definition should be updated to align with the RDS Mysql account. Also you
80+
can ignore changes as below.
81+
82+
```hcl
83+
resource "sbercloud_rds_mysql_account" "account_1" {
84+
...
85+
86+
lifecycle {
87+
ignore_changes = [
88+
password
89+
]
90+
}
91+
}
92+
```

docs/resources/rds_mysql_binlog.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
subcategory: "Relational Database Service (RDS)"
3+
layout: "sbercloud"
4+
page_title: "SberCloud: sbercloud_rds_mysql_binlog"
5+
description: ""
6+
---
7+
8+
# sbercloud_rds_mysql_binlog
9+
10+
Manages RDS MySQL binlog resource within SberCloud.
11+
12+
## Example Usage
13+
14+
```hcl
15+
variable "instance_id" {}
16+
17+
resource "sbercloud_rds_mysql_binlog" "test" {
18+
instance_id = var.instance_id
19+
binlog_retention_hours = 6
20+
}
21+
```
22+
23+
## Argument Reference
24+
25+
The following arguments are supported:
26+
27+
* `region` - (Optional, String, ForceNew) The region in which to create the RDS binlog resource. If omitted, the
28+
provider-level region will be used. Changing this creates a new resource.
29+
30+
* `instance_id` - (Required, String, ForceNew) Specifies the RDS MySQL instance ID. Changing this will create a new resource.
31+
32+
* `binlog_retention_hours` - (Required, Int) Specifies the binlog retention period. Value range: `1` to `168` (7x24).
33+
34+
## Attribute Reference
35+
36+
In addition to all arguments above, the following attribute is exported:
37+
38+
* `id` - The resource ID .
39+
40+
## Import
41+
42+
RDS MySQL binlog can be imported using the `instance id`, e.g.
43+
44+
```bash
45+
$ terraform import sbercloud_rds_mysql_binlog.test <instance_id>
46+
```

docs/resources/rds_mysql_database.md

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
subcategory: "Relational Database Service (RDS)"
3+
layout: "sbercloud"
4+
page_title: "SberCloud: sbercloud_rds_mysql_database"
5+
description: ""
6+
---
7+
8+
# sbercloud_rds_mysql_database
9+
10+
Manages RDS Mysql database resource within SberCloud.
11+
12+
## Example Usage
13+
14+
```hcl
15+
variable "instance_id" {}
16+
17+
resource "sbercloud_rds_mysql_database" "test" {
18+
instance_id = var.instance_id
19+
name = "test"
20+
character_set = "utf8"
21+
description = "test database"
22+
}
23+
```
24+
25+
## Argument Reference
26+
27+
The following arguments are supported:
28+
29+
* `region` - (Optional, String, ForceNew) The region in which to create the RDS database resource. If omitted, the
30+
provider-level region will be used. Changing this creates a new resource.
31+
32+
* `instance_id` - (Required, String, ForceNew) Specifies the RDS instance ID. Changing this will create a new resource.
33+
34+
* `name` - (Required, String, ForceNew) Specifies the database name. The database name contains `1` to `64`
35+
characters. The name can only consist of lowercase letters, digits, hyphens (-), underscores (_) and dollar signs
36+
($). The total number of hyphens (-) and dollar signs ($) cannot exceed `10`. RDS for **MySQL 8.0** does not
37+
support dollar signs ($). Changing this will create a new resource.
38+
39+
* `character_set` - (Required, String, ForceNew) Specifies the character set used by the database, For example **utf8**,
40+
**gbk**, **ascii**, etc. Changing this will create a new resource.
41+
42+
* `description` - (Optional, String) Specifies the database description. The value can contain `0` to `512` characters.
43+
This parameter takes effect only for DB instances whose kernel versions are at least **5.6.51.3**, **5.7.33.1**,
44+
or **8.0.21.4**.
45+
46+
## Attribute Reference
47+
48+
In addition to all arguments above, the following attributes are exported:
49+
50+
* `id` - The resource ID of database which is formatted `<instance_id>/<name>`.
51+
52+
## Timeouts
53+
54+
This resource provides the following timeouts configuration options:
55+
56+
* `create` - Default is 30 minutes.
57+
* `update` - Default is 30 minutes.
58+
* `delete` - Default is 30 minutes.
59+
60+
## Import
61+
62+
RDS database can be imported using the `instance id` and `name` separated by slash, e.g.
63+
64+
```bash
65+
$ terraform import sbercloud_rds_mysql_database.database_1 <instance_id>/<name>
66+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
subcategory: "Relational Database Service (RDS)"
3+
layout: "sbercloud"
4+
page_title: "SberCloud: sbercloud_rds_mysql_database_privilege"
5+
description: ""
6+
---
7+
8+
# sbercloud_rds_mysql_database_privilege
9+
10+
Manages RDS Mysql database privilege resource within SberCloud.
11+
12+
## Example Usage
13+
14+
```hcl
15+
variable "instance_id" {}
16+
variable "db_name" {}
17+
variable "user_name_1" {}
18+
variable "user_name_2" {}
19+
20+
resource "sbercloud_rds_mysql_database_privilege" "test" {
21+
instance_id = var.instance_id
22+
db_name = var.db_name
23+
24+
users {
25+
name = var.user_name_1
26+
readonly = true
27+
}
28+
29+
users {
30+
name = var.user_name_2
31+
readonly = false
32+
}
33+
}
34+
```
35+
36+
## Argument Reference
37+
38+
The following arguments are supported:
39+
40+
* `region` - (Optional, String, ForceNew) The region in which to create the RDS database privilege resource. If omitted,
41+
the provider-level region will be used. Changing this creates a new resource.
42+
43+
* `instance_id` - (Required, String, ForceNew) Specifies the RDS instance ID. Changing this will create a new resource.
44+
45+
* `db_name` - (Required, String, ForceNew) Specifies the database name. Changing this creates a new resource.
46+
47+
* `users` - (Required, List) Specifies the account that associated with the database. Structure is documented below.
48+
49+
The `users` block supports:
50+
51+
* `name` - (Required, String) Specifies the username of the database account.
52+
53+
* `readonly` - (Optional, Bool) Specifies the read-only permission. The value can be:
54+
+ **true**: indicates the read-only permission.
55+
+ **false**: indicates the read and write permission.
56+
57+
The default value is **false**.
58+
59+
## Attribute Reference
60+
61+
In addition to all arguments above, the following attributes are exported:
62+
63+
* `id` - The resource ID of database privilege which is formatted `<instance_id>/<db_name>`.
64+
65+
## Timeouts
66+
67+
This resource provides the following timeouts configuration options:
68+
69+
* `create` - Default is 30 minutes.
70+
* `update` - Default is 30 minutes.
71+
* `delete` - Default is 30 minutes.
72+
73+
## Import
74+
75+
RDS database privilege can be imported using the `instance id` and `db_name`, e.g.
76+
77+
```bash
78+
$ terraform import sbercloud_rds_mysql_database_privilege.test <instance_id>/<db_name>
79+
```

0 commit comments

Comments
 (0)