Skip to content

Commit

Permalink
Merge pull request #4 from terraform-yacloud-modules/tflint
Browse files Browse the repository at this point in the history
Исправил некоторые ошибки tflint
  • Loading branch information
patsevanton authored Jul 29, 2024
2 parents 734c5ef + 73e7ade commit 278fd1f
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 14 deletions.
28 changes: 25 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,44 @@ maintainers to test your changes and to keep the examples up to date for users.
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.3 |
| <a name="requirement_yandex"></a> [yandex](#requirement\_yandex) | >= 0.72.0 |

## Providers

No providers.
| Name | Version |
|------|---------|
| <a name="provider_yandex"></a> [yandex](#provider\_yandex) | >= 0.72.0 |

## Modules

No modules.

## Resources

No 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

No inputs.
| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_cluster_name"></a> [cluster\_name](#input\_cluster\_name) | Name of the MongoDB cluster | `string` | n/a | yes |
| <a name="input_database_name"></a> [database\_name](#input\_database\_name) | Name of the database | `string` | n/a | yes |
| <a name="input_environment"></a> [environment](#input\_environment) | Deployment environment of the MongoDB cluster | `string` | n/a | yes |
| <a name="input_labels"></a> [labels](#input\_labels) | A set of key/value label pairs to assign to the MongoDB cluster | `map(string)` | `{}` | no |
| <a name="input_mongodb_version"></a> [mongodb\_version](#input\_mongodb\_version) | Version of the MongoDB server software | `string` | n/a | yes |
| <a name="input_network_id"></a> [network\_id](#input\_network\_id) | ID of the network, to which the Redis cluster belongs | `string` | n/a | yes |
| <a name="input_resources_mongod_disk_size"></a> [resources\_mongod\_disk\_size](#input\_resources\_mongod\_disk\_size) | Volume of the storage available to a MongoDB host, in gigabytes | `number` | n/a | yes |
| <a name="input_resources_mongod_disk_type"></a> [resources\_mongod\_disk\_type](#input\_resources\_mongod\_disk\_type) | Type of the storage of MongoDB hosts | `string` | n/a | yes |
| <a name="input_resources_mongod_preset"></a> [resources\_mongod\_preset](#input\_resources\_mongod\_preset) | The ID of the preset for computational resources available to a MongoDB host | `string` | n/a | yes |
| <a name="input_subnet_id"></a> [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 |
| <a name="input_user_name"></a> [user\_name](#input\_user\_name) | Name of the user | `string` | n/a | yes |
| <a name="input_user_password"></a> [user\_password](#input\_user\_password) | Password of the user | `string` | n/a | yes |
| <a name="input_zone_id"></a> [zone\_id](#input\_zone\_id) | Zone for allocating address | `string` | `"ru-central1-a"` | no |

## Outputs

Expand Down
22 changes: 11 additions & 11 deletions examples/main.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
module "mongodb_cluster" {
source = "../"

network_id = "xxxx"
subnet_id = "xxxx"
network_id = "xxxx"
subnet_id = "xxxx"

cluster_name = "test-cluster"
environment = "PRESTABLE"
mongodb_version = "5.0"
labels = { test_key = "test_value" }
database_name = "testdb"
user_name = "john"
user_password = "password"
resources_mongod_preset = "s2.small"
cluster_name = "test-cluster"
environment = "PRESTABLE"
mongodb_version = "5.0"
labels = { test_key = "test_value" }
database_name = "testdb"
user_name = "john"
user_password = "password"
resources_mongod_preset = "s2.small"
resources_mongod_disk_size = 16
resources_mongod_disk_type = "network-hdd"
# maintenance_window_type = "ANYTIME"
# maintenance_window_type = "ANYTIME"
}
Empty file added examples/outputs.tf
Empty file.
Empty file added examples/variables.tf
Empty file.
9 changes: 9 additions & 0 deletions examples/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
terraform {
required_providers {
yandex = {
source = "yandex-cloud/yandex"
version = ">= 0.72.0"
}
}
required_version = ">= 1.3"
}

0 comments on commit 278fd1f

Please sign in to comment.