Skip to content

Commit 7844cd0

Browse files
authored
Merge pull request #49 from lgallard/release/0.13.0
Release/0.13.0
2 parents 439ff2e + 8258aa1 commit 7844cd0

File tree

5 files changed

+14
-11
lines changed

5 files changed

+14
-11
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repos:
88
- id: end-of-file-fixer
99
- id: check-added-large-files
1010
- id: detect-aws-credentials
11-
- repo: git://github.com/antonbabenko/pre-commit-terraform
11+
- repo: https://github.com/antonbabenko/pre-commit-terraform
1212
rev: v1.49.0 # Get the latest from: https://github.com/antonbabenko/pre-commit-terraform/releases
1313
hooks:
1414
- id: terraform_fmt

README.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,14 @@ module "aws_es" {
125125
|------|---------|
126126
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.9 |
127127
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.35.0 |
128+
| <a name="requirement_random"></a> [random](#requirement\_random) | >=3.1.2 |
128129

129130
## Providers
130131

131132
| Name | Version |
132133
|------|---------|
133-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.35.0 |
134+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.6.0 |
135+
| <a name="provider_random"></a> [random](#provider\_random) | 3.1.2 |
134136

135137
## Modules
136138

@@ -144,6 +146,7 @@ No modules.
144146
| [aws_cloudwatch_log_resource_policy.es_aws_cloudwatch_log_resource_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_resource_policy) | resource |
145147
| [aws_elasticsearch_domain.es_domain](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticsearch_domain) | resource |
146148
| [aws_iam_service_linked_role.es](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_service_linked_role) | resource |
149+
| [random_password.master_password](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/password) | resource |
147150
| [aws_kms_key.aws_es](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/kms_key) | data source |
148151

149152
## Inputs
@@ -153,13 +156,13 @@ No modules.
153156
| <a name="input_access_policies"></a> [access\_policies](#input\_access\_policies) | IAM policy document specifying the access policies for the domain | `string` | `""` | no |
154157
| <a name="input_advanced_options"></a> [advanced\_options](#input\_advanced\_options) | Key-value string pairs to specify advanced configuration options. Note that the values for these configuration options must be strings (wrapped in quotes) or they may be wrong and cause a perpetual diff, causing Terraform to want to recreate your Elasticsearch domain on every apply | `map(string)` | `{}` | no |
155158
| <a name="input_advanced_security_options"></a> [advanced\_security\_options](#input\_advanced\_security\_options) | Options for fine-grained access control | `any` | `{}` | no |
159+
| <a name="input_advanced_security_options_create_random_master_password"></a> [advanced\_security\_options\_create\_random\_master\_password](#input\_advanced\_security\_options\_create\_random\_master\_password) | Whether to create random master password for Elasticsearch master user | `bool` | `false` | no |
156160
| <a name="input_advanced_security_options_enabled"></a> [advanced\_security\_options\_enabled](#input\_advanced\_security\_options\_enabled) | Whether advanced security is enabled (Forces new resource) | `bool` | `false` | no |
157161
| <a name="input_advanced_security_options_internal_user_database_enabled"></a> [advanced\_security\_options\_internal\_user\_database\_enabled](#input\_advanced\_security\_options\_internal\_user\_database\_enabled) | Whether the internal user database is enabled. If not set, defaults to false by the AWS API. | `bool` | `false` | no |
158162
| <a name="input_advanced_security_options_master_user_arn"></a> [advanced\_security\_options\_master\_user\_arn](#input\_advanced\_security\_options\_master\_user\_arn) | ARN for the master user. Only specify if `internal_user_database_enabled` is not set or set to `false`) | `string` | `null` | no |
159163
| <a name="input_advanced_security_options_master_user_password"></a> [advanced\_security\_options\_master\_user\_password](#input\_advanced\_security\_options\_master\_user\_password) | The master user's password, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`. | `string` | `null` | no |
160164
| <a name="input_advanced_security_options_master_user_username"></a> [advanced\_security\_options\_master\_user\_username](#input\_advanced\_security\_options\_master\_user\_username) | The master user's username, which is stored in the Amazon Elasticsearch Service domain's internal database. Only specify if `internal_user_database_enabled` is set to `true`. | `string` | `null` | no |
161-
| <a name="input_advanced_security_options_create_random_master_password"></a> [advanced\_security\_options\_create\_random\_master\_password](#input\_advanced\_security\_options\_create\_random\_master\_password) | Whether to create random master password for Elasticsearch master user | `bool` | `false` | no |
162-
| <a name="input_advanced_security_options_random_master_password_length"></a> [advanced\_security\_options\_random\_master\_password\_length](#advanced\_security\_options\_random\_master\_password\_length) | Length of random master password to create | `number` | `16` | no |
165+
| <a name="input_advanced_security_options_random_master_password_length"></a> [advanced\_security\_options\_random\_master\_password\_length](#input\_advanced\_security\_options\_random\_master\_password\_length) | Length of random master password to create | `number` | `16` | no |
163166
| <a name="input_cloudwatch_log_enabled"></a> [cloudwatch\_log\_enabled](#input\_cloudwatch\_log\_enabled) | Change to false to avoid deploying any Cloudwatch Logs resources | `bool` | `true` | no |
164167
| <a name="input_cluster_config"></a> [cluster\_config](#input\_cluster\_config) | Cluster configuration of the domain | `any` | `{}` | no |
165168
| <a name="input_cluster_config_availability_zone_count"></a> [cluster\_config\_availability\_zone\_count](#input\_cluster\_config\_availability\_zone\_count) | Number of Availability Zones for the domain to use with | `number` | `3` | no |
@@ -215,9 +218,9 @@ No modules.
215218
| <a name="output_arn"></a> [arn](#output\_arn) | Amazon Resource Name (ARN) of the domain |
216219
| <a name="output_domain_id"></a> [domain\_id](#output\_domain\_id) | Unique identifier for the domain |
217220
| <a name="output_endpoint"></a> [endpoint](#output\_endpoint) | Domain-specific endpoint used to submit index, search, and data upload requests |
218-
| <a name="master_username"></a> [master_username](#master\_username) | Master username (if internal database master user enabled) |
219-
| <a name="master_password"></a> [master_password](#master\_password) | Master password (if internal database master user enabled) |
220221
| <a name="output_kibana_endpoint"></a> [kibana\_endpoint](#output\_kibana\_endpoint) | Domain-specific endpoint for kibana without https scheme |
222+
| <a name="output_master_password"></a> [master\_password](#output\_master\_password) | Master password |
223+
| <a name="output_master_username"></a> [master\_username](#output\_master\_username) | Master username |
221224
| <a name="output_vpc_options_availability_zones"></a> [vpc\_options\_availability\_zones](#output\_vpc\_options\_availability\_zones) | If the domain was created inside a VPC, the names of the availability zones the configured subnet\_ids were created inside |
222225
| <a name="output_vpc_options_vpc_id"></a> [vpc\_options\_vpc\_id](#output\_vpc\_options\_vpc\_id) | If the domain was created inside a VPC, the ID of the VPC |
223226
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

main.tf

+3-3
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ locals {
161161
# advanced_security_options
162162
# Create subblock master_user_options
163163
create_random_master_password = var.advanced_security_options_enabled && var.advanced_security_options_internal_user_database_enabled && var.advanced_security_options_create_random_master_password
164-
master_user_arn = var.advanced_security_options_internal_user_database_enabled == false ? var.advanced_security_options_master_user_arn : null
165-
master_user_name = var.advanced_security_options_internal_user_database_enabled == true ? var.advanced_security_options_master_user_username : null
166-
master_user_password = local.create_random_master_password == true ? random_password.master_password[0].result : var.advanced_security_options_master_user_password
164+
master_user_arn = var.advanced_security_options_internal_user_database_enabled == false ? var.advanced_security_options_master_user_arn : null
165+
master_user_name = var.advanced_security_options_internal_user_database_enabled == true ? var.advanced_security_options_master_user_username : null
166+
master_user_password = local.create_random_master_password == true ? random_password.master_password[0].result : var.advanced_security_options_master_user_password
167167

168168
master_user_options = lookup(var.advanced_security_options, "master_user_options", null) != null ? lookup(var.advanced_security_options, "master_user_options") : {
169169
master_user_arn = local.master_user_arn

outputs.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ output "master_username" {
2626
output "master_password" {
2727
description = "Master password"
2828
value = local.master_user_password
29-
sensitive = true
29+
sensitive = true
3030
}
3131

3232
output "vpc_options_availability_zones" {

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_version = ">= 0.12.9"
33

44
required_providers {
5-
aws = ">= 3.35.0"
5+
aws = ">= 3.35.0"
66
random = ">=3.1.2"
77
}
88
}

0 commit comments

Comments
 (0)