Skip to content

Commit

Permalink
Merge branch 'yandex-cloud:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
suslovsergey authored May 31, 2022
2 parents ddecb77 + b0ca465 commit dad5821
Show file tree
Hide file tree
Showing 53 changed files with 5,501 additions and 2,249 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,30 @@
## 0.75.0 (Unreleased)
ENHANCEMENTS:
* compute: support instance's scheduling policy update in-place

FEATURES:
* datatransfer: add ClickHouse endpoint into `yandex_datatransfer_endpoint` resource
* alb: support `session_affinity` attribute in `yandex_alb_backend_group` resource and data source.
* **New Resource:** `yandex_mdb_postgresql_database`
* **New Resource:** `yandex_mdb_postgresql_user`
* **New Resource:** `yandex_mdb_mysql_database`
* **New Resource:** `yandex_mdb_mysql_user`
* **New Data Source:** `yandex_mdb_postgresql_database`
* **New Data Source:** `yandex_mdb_postgresql_user`
* **New Data Source:** `yandex_mdb_mysql_database`
* **New Data Source:** `yandex_mdb_mysql_user`
* storage: support `folder_id`, `max_size`, `anonymous_access_flags`, `https` and `default_storage_class` attributes in bucket.
See `storage_bucket` documentation for important information.

BUG FIXES:
* postgresql: fix bug with applying cluster's settings in PostgreSQL 14
* iam: return error when access bindings not applied
* storage: fix bug of wrong handling permission error denied on reading policy
* mdb: fix setting timeout and slowlog_max_len to 0 value in `yandex_mdb_redis_cluster`

WARNING:
* postgresql: `database` and `user` sections for `yandex_mdb_postgresql_cluster` are now deprecated
* mysql: `database` and `user` sections for `yandex_mdb_mysql_cluster` are now deprecated

## 0.74.0 (April 19, 2022)
ENHANCEMENTS:
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ require (
github.com/pierrec/lz4 v2.6.1+incompatible
github.com/stretchr/objx v0.1.1
github.com/stretchr/testify v1.7.0
github.com/yandex-cloud/go-genproto v0.0.0-20220413094640-b49325ae8421
github.com/yandex-cloud/go-sdk v0.0.0-20220411081740-1dccc34f84a5
github.com/yandex-cloud/go-genproto v0.0.0-20220427145821-09b0e1a69c0c
github.com/yandex-cloud/go-sdk v0.0.0-20220427150059-eb82b5db2827
golang.org/x/net v0.0.0-20220412020605-290c469a71a5
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect
google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9
Expand Down
9 changes: 9 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -928,8 +928,17 @@ github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:
github.com/yandex-cloud/go-genproto v0.0.0-20220411081313-f9bf575d309f/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE=
github.com/yandex-cloud/go-genproto v0.0.0-20220413094640-b49325ae8421 h1:43Sh8NzEkAxuzpFkw5+ENwf/8Xr+vKjcCkPQWyStWNA=
github.com/yandex-cloud/go-genproto v0.0.0-20220413094640-b49325ae8421/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE=
github.com/yandex-cloud/go-genproto v0.0.0-20220419100608-bb4f0fc6a2d8/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE=
github.com/yandex-cloud/go-genproto v0.0.0-20220425125447-d18ee9140af8 h1:xpoensqj3TCpv2TEYxSMA416/rUCb73hvRjMAJ932r8=
github.com/yandex-cloud/go-genproto v0.0.0-20220425125447-d18ee9140af8/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE=
github.com/yandex-cloud/go-genproto v0.0.0-20220427145821-09b0e1a69c0c h1:LYGfLFlyGt/Q8Ik+m9ggoYwpHAKMhIbebM0VHwDt6F4=
github.com/yandex-cloud/go-genproto v0.0.0-20220427145821-09b0e1a69c0c/go.mod h1:HEUYX/p8966tMUHHT+TsS0hF/Ca/NYwqprC5WXSDMfE=
github.com/yandex-cloud/go-sdk v0.0.0-20220411081740-1dccc34f84a5 h1:qmNe8aHsUjiXxNpI3CTBiUD/OTn+Xve8LPao/HMhVFA=
github.com/yandex-cloud/go-sdk v0.0.0-20220411081740-1dccc34f84a5/go.mod h1:Jk4rai1fMXhAoSj7/ip7nH5xfS7gG75y80jQz0OISc8=
github.com/yandex-cloud/go-sdk v0.0.0-20220419102148-7e6af5c545b6 h1:1AMLBs0w5nu4bq4gwao2sNT9v1vRa4iloKgd/5Vq2wU=
github.com/yandex-cloud/go-sdk v0.0.0-20220419102148-7e6af5c545b6/go.mod h1:61m4gRmE6GDwEpy+ggCkPNCFvhbAMEhVdq7DSFnWdNI=
github.com/yandex-cloud/go-sdk v0.0.0-20220427150059-eb82b5db2827 h1:GIr8xGRoNq7JsJ1GbRVR5rIBJQIYjDjr5uNZM9kD324=
github.com/yandex-cloud/go-sdk v0.0.0-20220427150059-eb82b5db2827/go.mod h1:KbdvVhd2QWGD+tUMEL4k7kai2LbbSGJ+YhkteUVpoP0=
github.com/yeya24/promlinter v0.1.0 h1:goWULN0jH5Yajmu/K+v1xCqIREeB+48OiJ2uu2ssc7U=
github.com/yeya24/promlinter v0.1.0/go.mod h1:rs5vtZzeBHqqMwXqFScncpCF6u06lezhZepno9AB1Oc=
github.com/yudai/gojsondiff v1.0.0/go.mod h1:AY32+k2cwILAkW1fbgxQ5mUmMiZFgLIV+FBNExI05xg=
Expand Down
60 changes: 60 additions & 0 deletions website/docs/d/datasource_mdb_mysql_user.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
layout: "yandex"
page_title: "Yandex: yandex_mdb_mysql_user"
sidebar_current: "docs-yandex-datasource-mdb-mysql-user"
description: |-
Get information about a Yandex Managed MySQL user.
---

# yandex\_mdb\_mysql\_user

Get information about a Yandex Managed MySQL user. For more information, see
[the official documentation](https://cloud.yandex.com/docs/managed-mysql/).

## Example Usage

```hcl
data "yandex_mdb_mysql_user" "foo" {
cluster_id = "some_cluster_id"
name = "test"
}
output "permission" {
value = "${data.yandex_mdb_mysql_user.foo.permission}"
}
```

## Argument Reference

The following arguments are supported:

* `cluster_id` - (Required) The ID of the MySQL cluster.

* `name` - (Required) The name of the MySQL user.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

* `name` - The name of the user.
* `password` - The password of the user.
* `permission` - Set of permissions granted to the user. The structure is documented below.
* `global_permissions` - List user's global permissions. Allowed values: `REPLICATION_CLIENT`, `REPLICATION_SLAVE`, `PROCESS` or empty list.
* `connection_limits` - User's connection limits. The structure is documented below.
* `authentication_plugin` - Authentication plugin. Allowed values: `MYSQL_NATIVE_PASSWORD`, `CACHING_SHA2_PASSWORD`, `SHA256_PASSWORD`

The `connection_limits` block supports:
When these parameters are set to -1, backend default values will be actually used.

* `max_questions_per_hour` - Max questions per hour.
* `max_updates_per_hour` - Max updates per hour.
* `max_connections_per_hour` - Max connections per hour.
* `max_user_connections` - Max user connections.

The `permission` block supports:

* `database_name` - The name of the database that the permission grants access to.
* `roles` - List user's roles in the database.
Allowed roles: `ALL`,`ALTER`,`ALTER_ROUTINE`,`CREATE`,`CREATE_ROUTINE`,`CREATE_TEMPORARY_TABLES`,
`CREATE_VIEW`,`DELETE`,`DROP`,`EVENT`,`EXECUTE`,`INDEX`,`INSERT`,`LOCK_TABLES`,`SELECT`,`SHOW_VIEW`,`TRIGGER`,`UPDATE`.

29 changes: 0 additions & 29 deletions website/docs/d/datasource_mdb_postgresql_cluster.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ exported:
* `health` - Aggregated health of the cluster.
* `status` - Status of the cluster.
* `config` - Configuration of the PostgreSQL cluster. The structure is documented below.
* `user` - A user of the PostgreSQL cluster. The structure is documented below.
* `database` - A database of the PostgreSQL cluster. The structure is documented below.
* `host` - A host of the PostgreSQL cluster. The structure is documented below.
* `security_group_ids` - A set of ids of security groups assigned to hosts of the cluster.
* `maintenance_window` - Maintenance window settings of the PostgreSQL cluster. The structure is documented below.
Expand Down Expand Up @@ -96,33 +94,6 @@ The `performance_diagnostics` block supports:
* `sessions_sampling_interval` - Interval (in seconds) for pg_stat_activity sampling Acceptable values are 1 to 86400, inclusive.
* `statements_sampling_interval` - Interval (in seconds) for pg_stat_statements sampling Acceptable values are 1 to 86400, inclusive.

The `user` block supports:

* `name` - The name of the user.
* `password` - The password of the user.
* `permission` - Set of permissions granted to the user. The structure is documented below.
* `login` - User's ability to login.
* `grants` - List of the user's grants.
* `conn_limit` - The maximum number of connections per user.
* `settings` - Map of user settings.

The `permission` block supports:

* `database_name` - The name of the database that the permission grants access to.

The `database` block supports:

* `name` - The name of the database.
* `owner` - Name of the user assigned as the owner of the database.
* `lc_collate` - POSIX locale for string sorting order. Forbidden to change in an existing database.
* `lc_type` - POSIX locale for character classification. Forbidden to change in an existing database.
* `extension` - Set of database extensions. The structure is documented below

The `extension` block supports:

* `name` - Name of the database extension. For more information on available extensions see [the official documentation](https://cloud.yandex.com/docs/managed-postgresql/operations/cluster-extensions).
* `version` - Version of the extension.

The `host` block supports:

* `fqdn` - The fully qualified domain name of the host.
Expand Down
49 changes: 49 additions & 0 deletions website/docs/d/datasource_mdb_postgresql_database.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: "yandex"
page_title: "Yandex: yandex_mdb_postgresql_database"
sidebar_current: "docs-yandex-datasource-mdb-postgresql-database"
description: |-
Get information about a Yandex Managed PostgreSQL database.
---

# yandex\_mdb\_postgresql\_database

Get information about a Yandex Managed PostgreSQL database. For more information, see
[the official documentation](https://cloud.yandex.com/docs/managed-postgresql/).

## Example Usage

```hcl
data "yandex_mdb_postgresql_database" "foo" {
cluster_id = "some_cluster_id"
name = "test"
}
output "owner" {
value = "${data.yandex_mdb_postgresql_database.foo.owner}"
}
```

## Argument Reference

The following arguments are supported:

* `cluster_id` - (Required) The ID of the PostgreSQL cluster.

* `name` - (Required) The name of the PostgreSQL cluster.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are
exported:

* `owner` - Name of the user assigned as the owner of the database.
* `lc_collate` - POSIX locale for string sorting order. Forbidden to change in an existing database.
* `lc_type` - POSIX locale for character classification. Forbidden to change in an existing database.
* `extension` - Set of database extensions. The structure is documented below

The `extension` block supports:

* `name` - Name of the database extension. For more information on available extensions see [the official documentation](https://cloud.yandex.com/docs/managed-postgresql/operations/cluster-extensions).
* `version` - Version of the extension.

49 changes: 49 additions & 0 deletions website/docs/d/datasource_mdb_postgresql_user.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: "yandex"
page_title: "Yandex: yandex_mdb_postgresql_user"
sidebar_current: "docs-yandex-datasource-mdb-postgresql-user"
description: |-
Get information about a Yandex Managed PostgreSQL user.
---

# yandex\_mdb\_postgresql\_user

Get information about a Yandex Managed PostgreSQL user. For more information, see
[the official documentation](https://cloud.yandex.com/docs/managed-postgresql/).

## Example Usage

```hcl
data "yandex_mdb_postgresql_user" "foo" {
cluster_id = "some_cluster_id"
name = "test"
}
output "permission" {
value = "${data.yandex_mdb_postgresql_user.foo.permission}"
}
```

## Argument Reference

The following arguments are supported:

* `cluster_id` - (Required) The ID of the PostgreSQL cluster.

* `name` - (Required) The name of the PostgreSQL user.

## Attributes Reference

In addition to the arguments listed above, the following computed attributes are
exported:

* `password` - The password of the user.
* `permission` - Set of permissions granted to the user. The structure is documented below.
* `login` - User's ability to login.
* `grants` - List of the user's grants.
* `conn_limit` - The maximum number of connections per user.
* `settings` - Map of user settings.

The `permission` block supports:

* `database_name` - The name of the database that the permission grants access to.
Loading

0 comments on commit dad5821

Please sign in to comment.