You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Description
Just want a request for either way
modify resource [tencentcloud_redis_instance] to support [replica_zone_names] for example = ["ap-singapore-1","ap-singapore-2"]
modify datasource [tencentcloud_redis_zone_config] to output zone id
New or Affected Resource(s)
resource tencentcloud_redis_instance
datasource tencentcloud_redis_zone_config
Potential Terraform Configuration
data"tencentcloud_redis_zone_config""redis7_cluster_zone" {
type_id=18region="ap-singapore"
}
# Need to use this datasource just for get zone_id for multi azdata"tencentcloud_availability_zones_by_product""az" {
product="redis"
}
resource"tencentcloud_redis_instance""this" {
availability_zone=data.tencentcloud_redis_zone_config.redis7_cluster_zone.list[0].zonetype_id=data.tencentcloud_redis_zone_config.redis7_cluster_zone.list[0].type_idvpc_id=var.vpc_idsubnet_id=var.subnet_idname=var.namemem_size=var.mem_sizecharge_type=var.charge_typeredis_shard_num=var.shard_numredis_replicas_num=var.replicas_numreplica_zone_ids=[
foriinrange(var.replicas_num)
:data.tencentcloud_availability_zones_by_product.az.zones[i%length(data.tencentcloud_availability_zones_by_product.az.zones)].id
]
}
References
#0000
The text was updated successfully, but these errors were encountered:
Community Note
Description
Just want a request for either way
["ap-singapore-1","ap-singapore-2"]
New or Affected Resource(s)
Potential Terraform Configuration
References
The text was updated successfully, but these errors were encountered: