Skip to content

Commit

Permalink
fix(elasticsearch): fix #143 bug to allow the deployment with 0 maste…
Browse files Browse the repository at this point in the history
…r nodes (#145)

* fix(elasticsearch): fix #143 bug to allow the deployment with 0 master nodes

* Auto Format

---------

Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
Co-authored-by: Igor Rodionov <goruha@gmail.com>
  • Loading branch information
3 people authored Feb 23, 2023
1 parent 6cf06ed commit dda8ef4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ resource "aws_elasticsearch_domain" "default" {
instance_count = var.instance_count
instance_type = var.instance_type
dedicated_master_enabled = var.dedicated_master_enabled
dedicated_master_count = var.dedicated_master_count
dedicated_master_type = var.dedicated_master_type
dedicated_master_count = var.dedicated_master_enabled ? var.dedicated_master_count : null
dedicated_master_type = var.dedicated_master_enabled ? var.dedicated_master_type : null
zone_awareness_enabled = var.zone_awareness_enabled
warm_enabled = var.warm_enabled
warm_count = var.warm_enabled ? var.warm_count : null
Expand Down

0 comments on commit dda8ef4

Please sign in to comment.