Skip to content

Commit

Permalink
Merge pull request #118 from Buildings-IOT/udmi_atlas
Browse files Browse the repository at this point in the history
added auto scaling min&max
  • Loading branch information
naveenlakshmi committed Apr 8, 2022
2 parents 6c6ab0d + 7531968 commit bebfa24
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
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

0 comments on commit bebfa24

Please sign in to comment.