An open API service indexing awesome lists of open source software.

https://github.com/terraform-yacloud-modules/terraform-yandex-mdb-ydb

Terraform module to manage Yandex Database resources within the Yandex.Cloud.
https://github.com/terraform-yacloud-modules/terraform-yandex-mdb-ydb

hacktoberfest yandex yandex-cloud

Last synced: 7 months ago
JSON representation

Terraform module to manage Yandex Database resources within the Yandex.Cloud.

Awesome Lists containing this project

README

          

# Yandex Cloud Terraform module

Terraform module which creates Yandex Cloud resources.

## Examples

Examples codified under
the [`examples`](https://github.com/terraform-yacloud-modules/terraform-yandex-module-template/tree/main/examples) are intended
to give users references for how to use the module(s) as well as testing/validating changes to the source code of the
module. If contributing to the project, please be sure to make any appropriate updates to the relevant examples to allow
maintainers to test your changes and to keep the examples up to date for users. Thank you!

## Requirements

| Name | Version |
|------|---------|
| [terraform](#requirement\_terraform) | >= 1.3 |
| [yandex](#requirement\_yandex) | >= 0.72.0 |

## Providers

| Name | Version |
|------|---------|
| [yandex](#provider\_yandex) | >= 0.72.0 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [yandex_ydb_database_dedicated.dedicated_database](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/ydb_database_dedicated) | resource |
| [yandex_ydb_database_serverless.serverless_database](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/ydb_database_serverless) | resource |
| [yandex_client_config.client](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/data-sources/client_config) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| [database\_type](#input\_database\_type) | Type of the Yandex Database to create (dedicated or serverless) | `string` | n/a | yes |
| [deletion\_protection](#input\_deletion\_protection) | Inhibits deletion of the database | `bool` | `false` | no |
| [description](#input\_description) | A description for the Yandex Database cluster | `string` | `null` | no |
| [fixed\_scale\_size](#input\_fixed\_scale\_size) | Number of instances for the Yandex Database cluster (only for dedicated) | `number` | `1` | no |
| [folder\_id](#input\_folder\_id) | (Optional) The ID of the Yandex Cloud Folder that the resources belongs to.

Allows to create bucket in different folder.
It will try to create bucket using IAM-token in provider config, not using access\_key.
If omitted, folder\_id specified in provider config and access\_key is used. | `string` | `null` | no |
| [labels](#input\_labels) | A set of key/value label pairs to assign to the Yandex Database cluster | `map(string)` | `{}` | no |
| [name](#input\_name) | Name of the Yandex Database cluster | `string` | n/a | yes |
| [network\_id](#input\_network\_id) | ID of the network to attach the Yandex Database cluster to (only for dedicated) | `string` | n/a | yes |
| [region\_id](#input\_region\_id) | Region ID for the Yandex Database cluster (only for dedicated) | `string` | `"ru-central1"` | no |
| [resource\_preset\_id](#input\_resource\_preset\_id) | The Yandex Database cluster preset (only for dedicated) | `string` | n/a | yes |
| [storage\_group\_count](#input\_storage\_group\_count) | Amount of storage groups of selected type for the Yandex Database cluster (only for dedicated) | `number` | `1` | no |
| [storage\_type\_id](#input\_storage\_type\_id) | Storage type ID for the Yandex Database cluster (only for dedicated) | `string` | `"ssd"` | no |
| [subnet\_ids](#input\_subnet\_ids) | List of subnet IDs to attach the Yandex Database cluster to (only for dedicated) | `list(string)` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| [database\_api\_endpoint](#output\_database\_api\_endpoint) | API endpoint of the Yandex Database cluster. Useful for SDK configuration. |
| [database\_created\_at](#output\_database\_created\_at) | The Yandex Database cluster creation timestamp. |
| [database\_endpoint](#output\_database\_endpoint) | Full endpoint of the Yandex Database cluster. |
| [database\_id](#output\_database\_id) | ID of the Yandex Database cluster. |
| [database\_name](#output\_database\_name) | Name of the Yandex Database cluster. |
| [database\_path](#output\_database\_path) | Full database path of the Yandex Database cluster. Useful for SDK configuration. |
| [database\_status](#output\_database\_status) | Status of the Yandex Database cluster. |
| [database\_tls\_enabled](#output\_database\_tls\_enabled) | Whether TLS is enabled for the Yandex Database cluster. Useful for SDK configuration. |

## License

Apache-2.0 Licensed.
See [LICENSE](https://github.com/terraform-yacloud-modules/terraform-yandex-module-template/blob/main/LICENSE).