Skip to content

feat(mongodb): [120399283]readonly instance #3200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3200.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
tencentcloud_mongodb_readonly_instance
```
8 changes: 4 additions & 4 deletions tencentcloud/acctest/basic.go
Original file line number Diff line number Diff line change
Expand Up @@ -856,10 +856,10 @@ locals {
locals {
filtered_sharding_spec = [for i in data.tencentcloud_mongodb_zone_config.zone_config.list: i if lookup(i, "cluster_type") == "SHARD" && lookup(i, "min_replicate_set_num") > 0 && lookup(i, "machine_type") == "HIO10G" && lookup(i, "engine_version") == "4.4" && lookup(i, "memory") == 4096 && lookup(i, "default_storage") == 256000]
sharding_spec = concat(local.filtered_sharding_spec, [for i in data.tencentcloud_mongodb_zone_config.zone_config.list: i if lookup(i, "cluster_type") == "SHARD" && lookup(i, "min_replicate_set_num") > 0])
sharding_machine_type = local.sharding_spec.0.machine_type
sharding_memory = local.sharding_spec.0.memory / 1024
sharding_volume = local.sharding_spec.0.default_storage / 1000
sharding_engine_version = lookup(var.engine_versions, local.sharding_spec.0.engine_version)
sharding_machine_type = local.filtered_sharding_spec.0.machine_type
sharding_memory = local.filtered_sharding_spec.0.memory / 1024
sharding_volume = local.filtered_sharding_spec.0.default_storage / 1000
sharding_engine_version = lookup(var.engine_versions, local.filtered_sharding_spec.0.engine_version)
}
`

Expand Down
1 change: 1 addition & 0 deletions tencentcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,7 @@ func Provider() *schema.Provider {
"tencentcloud_monitor_grafana_sso_config": tcmg.ResourceTencentCloudMonitorGrafanaSsoConfig(),
"tencentcloud_monitor_grafana_version_upgrade": tcmg.ResourceTencentCloudMonitorGrafanaVersionUpgrade(),
"tencentcloud_mongodb_standby_instance": mongodb.ResourceTencentCloudMongodbStandbyInstance(),
"tencentcloud_mongodb_readonly_instance": mongodb.ResourceTencentCloudMongodbReadOnlyInstance(),
"tencentcloud_elasticsearch_instance": es.ResourceTencentCloudElasticsearchInstance(),
"tencentcloud_elasticsearch_security_group": es.ResourceTencentCloudElasticsearchSecurityGroup(),
"tencentcloud_elasticsearch_logstash": es.ResourceTencentCloudElasticsearchLogstash(),
Expand Down
1 change: 1 addition & 0 deletions tencentcloud/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,7 @@ tencentcloud_mongodb_instance_backup
tencentcloud_mongodb_instance_transparent_data_encryption
tencentcloud_mongodb_instance_backup_rule
tencentcloud_mongodb_instance_params
tencentcloud_mongodb_readonly_instance

TencentDB for MySQL(cdb)
Data Source
Expand Down
Loading
Loading