Skip to content
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

added auto scaling min&max #118

Merged
merged 1 commit into from
Apr 8, 2022
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: 2 additions & 1 deletion cloud/gcp/mongodb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ resource "mongodbatlas_cluster" "udmi" {
disk_size_gb = var.disk_size_gb
provider_instance_size_name = var.instance_size_name
auto_scaling_disk_gb_enabled = true
provider_auto_scaling_compute_max_instance_size = var.auto_scaling_instance_size
provider_auto_scaling_compute_max_instance_size = var.auto_scaling_max_instance_size
provider_auto_scaling_compute_min_instance_size = var.auto_scaling_min_instance_size
}
9 changes: 7 additions & 2 deletions cloud/gcp/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,15 @@ variable "instance_size_name" {
type = string
description = "mongodb space name were we are using for this project"
}
variable "auto_scaling_instance_size" {
variable "auto_scaling_max_instance_size" {
type = string
description = "auto scalling instance size when it require"
description = "auto scalling max instance size when it require"
}
variable "auto_scaling_min_instance_size" {
type = string
description = "auto scalling min instance size when it require"
}




Expand Down