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

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

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

hacktoberfest yandex yandex-cloud

Last synced: 7 months ago
JSON representation

Terraform module to manage MongoDB 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_mdb_mongodb_cluster.mongodb_cluster](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/mdb_mongodb_cluster) | resource |
| [yandex_mdb_mongodb_database.mongodb_database](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/mdb_mongodb_database) | resource |
| [yandex_mdb_mongodb_user.mongodb_user](https://registry.terraform.io/providers/yandex-cloud/yandex/latest/docs/resources/mdb_mongodb_user) | 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 |
|------|-------------|------|---------|:--------:|
| [access](#input\_access) | Access policy to the MongoDB cluster |

object({
data_lens = optional(bool)
data_transfer = optional(bool)
})
| `null` | no |
| [backup\_window\_start](#input\_backup\_window\_start) | Time to start the daily backup, in the UTC timezone |
object({
hours = optional(number)
minutes = optional(number)
})
| `null` | no |
| [cluster\_name](#input\_cluster\_name) | Name of the MongoDB cluster | `string` | n/a | yes |
| [database\_name](#input\_database\_name) | Name of the database | `string` | n/a | yes |
| [deletion\_protection](#input\_deletion\_protection) | Inhibits deletion of the cluster | `bool` | `false` | no |
| [environment](#input\_environment) | Deployment environment of the MongoDB cluster | `string` | n/a | yes |
| [feature\_compatibility\_version](#input\_feature\_compatibility\_version) | Feature compatibility version of MongoDB | `string` | `null` | no |
| [labels](#input\_labels) | A set of key/value label pairs to assign to the MongoDB cluster | `map(string)` | `{}` | no |
| [mongod\_hosts](#input\_mongod\_hosts) | List of hosts in MongoDB cluster. |
list(object({
assign_public_ip = optional(bool, false)
zone_id = optional(string, "ru-central1-a")
subnet_id = string
}))
| n/a | yes |
| [mongodb\_version](#input\_mongodb\_version) | Version of the MongoDB server software | `string` | n/a | yes |
| [network\_id](#input\_network\_id) | ID of the network, to which the Redis cluster belongs | `string` | n/a | yes |
| [performance\_diagnostics](#input\_performance\_diagnostics) | Performance diagnostics to the MongoDB cluster |
object({
enabled = optional(bool)
})
| `null` | no |
| [resources\_mongod\_disk\_size](#input\_resources\_mongod\_disk\_size) | Volume of the storage available to a MongoDB host, in gigabytes | `number` | n/a | yes |
| [resources\_mongod\_disk\_type](#input\_resources\_mongod\_disk\_type) | Type of the storage of MongoDB hosts | `string` | n/a | yes |
| [resources\_mongod\_preset](#input\_resources\_mongod\_preset) | The ID of the preset for computational resources available to a MongoDB host | `string` | n/a | yes |
| [security\_group\_ids](#input\_security\_group\_ids) | A set of ids of security groups assigned to hosts of the cluster | `list(string)` | `[]` | no |
| [subnet\_id](#input\_subnet\_id) | The ID of the subnet, to which the host belongs. The subnet must be a part of the network to which the cluster belongs | `string` | n/a | yes |
| [user\_name](#input\_user\_name) | Name of the user | `string` | n/a | yes |
| [user\_password](#input\_user\_password) | Password of the user | `string` | n/a | yes |
| [zone\_id](#input\_zone\_id) | Zone for allocating address | `string` | `"ru-central1-a"` | no |

## Outputs

| Name | Description |
|------|-------------|
| [database\_id](#output\_database\_id) | The ID of the MongoDB database |
| [id](#output\_id) | The ID of the MongoDB cluster |
| [name](#output\_name) | The name of the MongoDB cluster |
| [user\_id](#output\_user\_id) | The ID of the MongoDB user |

## License

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