Skip to content

Commit

Permalink
Fix locals in elasticsearch (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank0202 authored Mar 11, 2024
1 parent d643900 commit 9108676
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 68 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,9 @@ jobs:
output-file: README.md
fail-fast: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
ref: ${{ github.event.pull_request.head.ref }}
- name: Render and check docs is updated
uses: ./.github/actions/terraform-docs
with:
Expand Down
111 changes: 56 additions & 55 deletions aws/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions aws/configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ No requirements.

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.10.0 |
| <a name="provider_local"></a> [local](#provider\_local) | 2.4.0 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.5.1 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.39.1 |
| <a name="provider_local"></a> [local](#provider\_local) | 2.4.1 |
| <a name="provider_random"></a> [random](#provider\_random) | 3.6.0 |

## Modules

Expand Down
16 changes: 8 additions & 8 deletions aws/elasticsearch-main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
# under the License.

locals {
elasticsearch_domain_name = coalesce(lookup(local.storage_config, "domain_name"), var.cluster_name)
elasticsearch_version = coalesce(lookup(local.storage_config, "version"), "7.10")
elasticsearch_instance_type = coalesce(lookup(local.storage_config, "instance_type"), "m3.medium.elasticsearch")
elasticsearch_instance_count = coalesce(lookup(local.storage_config, "instance_count"), 2)
elasticsearch_additional_security_groups = coalesce(lookup(local.storage_config, "additional_security_groups"), [])
elasticsearch_zone_awareness_enabled = coalesce(lookup(local.storage_config, "zone_awareness_enabled"), false)
elasticsearch_availability_zone_count = coalesce(lookup(local.storage_config, "availability_zone_count"), 2)
elasticsearch_ebs_enabled = coalesce(lookup(local.storage_config, "ebs_enabled"), false)
elasticsearch_domain_name = coalesce(lookup(local.storage_config, "domain_name", var.cluster_name))
elasticsearch_version = coalesce(lookup(local.storage_config, "version", "7.10"))
elasticsearch_instance_type = coalesce(lookup(local.storage_config, "instance_type","m3.medium.elasticsearch"))
elasticsearch_instance_count = coalesce(lookup(local.storage_config, "instance_count", 2))
elasticsearch_additional_security_groups = coalesce(lookup(local.storage_config, "additional_security_groups", []))
elasticsearch_zone_awareness_enabled = coalesce(lookup(local.storage_config, "zone_awareness_enabled", false))
elasticsearch_availability_zone_count = coalesce(lookup(local.storage_config, "availability_zone_count",2))
elasticsearch_ebs_enabled = coalesce(lookup(local.storage_config, "ebs_enabled",false))
}

data "aws_caller_identity" "current" {}
Expand Down

0 comments on commit 9108676

Please sign in to comment.