Skip to content

Commit eddce03

Browse files
committed
Update examples
1 parent 569d8ca commit eddce03

File tree

6 files changed

+55
-7
lines changed

6 files changed

+55
-7
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.9.0 (April 12, 2021)
2+
3+
4+
ENHANCEMENTS:
5+
6+
* Add `custom_endpoint` support
7+
* Update examples
8+
19
## 0.8.0 (January 24, 2021)
210

311

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ module "aws_es" {
4848
"rest.action.multi.allow_explicit_index" = "true"
4949
}
5050
51+
domain_endpoint_options = {
52+
enforce_https = true
53+
custom_endpoint_enabled = true
54+
custom_endpoint = "lgallardo.com"
55+
custom_endpoint_certificate_arn = "arn:aws:acm:us-east-1:123456789101:certificate/abcd1234-ef11-abcd-1234-abcd1234efef"
56+
}
57+
5158
node_to_node_encryption_enabled = "true"
5259
snapshot_options_automated_snapshot_start_hour = "23"
5360
@@ -109,6 +116,20 @@ module "aws_es" {
109116
|------|---------|
110117
| aws | >= 2.69.0 |
111118

119+
## Modules
120+
121+
No Modules.
122+
123+
## Resources
124+
125+
| Name |
126+
|------|
127+
| [aws_cloudwatch_log_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group) |
128+
| [aws_cloudwatch_log_resource_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_resource_policy) |
129+
| [aws_elasticsearch_domain](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticsearch_domain) |
130+
| [aws_iam_service_linked_role](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_service_linked_role) |
131+
| [aws_kms_key](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/kms_key) |
132+
112133
## Inputs
113134

114135
| Name | Description | Type | Default | Required |
@@ -139,6 +160,9 @@ module "aws_es" {
139160
| cognito\_options\_user\_pool\_id | ID of the Cognito User Pool to use | `string` | `""` | no |
140161
| create\_service\_link\_role | Create service link role for AWS Elasticsearch Service | `bool` | `true` | no |
141162
| domain\_endpoint\_options | Domain endpoint HTTP(S) related options. | `any` | `{}` | no |
163+
| domain\_endpoint\_options\_custom\_endpoint | Fully qualified domain for your custom endpoint | `string` | `null` | no |
164+
| domain\_endpoint\_options\_custom\_endpoint\_certificate\_arn | ACM certificate ARN for your custom endpoint | `string` | `null` | no |
165+
| domain\_endpoint\_options\_custom\_endpoint\_enabled | Whether to enable custom endpoint for the Elasticsearch domain | `bool` | `false` | no |
142166
| domain\_endpoint\_options\_enforce\_https | Whether or not to require HTTPS | `bool` | `false` | no |
143167
| domain\_endpoint\_options\_tls\_security\_policy | The name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: `Policy-Min-TLS-1-0-2019-07` and `Policy-Min-TLS-1-2-2019-07` | `string` | `"Policy-Min-TLS-1-2-2019-07"` | no |
144168
| domain\_name | Name of the domain | `string` | n/a | yes |

examples/advanced_security_options_master_user_arn/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ module "aws_es" {
2323
}
2424
}
2525
26-
domain_endpoint_options_enforce_https = true
26+
domain_endpoint_options = {
27+
enforce_https = true
28+
custom_endpoint_enabled = true
29+
custom_endpoint = "lgallardo.com"
30+
custom_endpoint_certificate_arn = "arn:aws:acm:us-east-1:123456789101:certificate/abcd1234-ef11-abcd-1234-abcd1234efef"
31+
}
2732
2833
ebs_options = {
2934
ebs_enabled = "true"
@@ -48,7 +53,7 @@ module "aws_es" {
4853
region = data.aws_region.current.name,
4954
account = data.aws_caller_identity.current.account_id,
5055
domain_name = var.es_domain_name,
51-
whitelist = "${jsonencode(var.whitelist)}"
56+
whitelist = jsonencode(var.whitelist)
5257
})
5358
5459
node_to_node_encryption_enabled = "true"

examples/advanced_security_options_master_user_arn/main.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ module "aws_es" {
2020
}
2121
}
2222

23-
domain_endpoint_options_enforce_https = true
23+
domain_endpoint_options = {
24+
enforce_https = true
25+
custom_endpoint_enabled = true
26+
custom_endpoint = "lgallardo.com"
27+
custom_endpoint_certificate_arn = "arn:aws:acm:us-east-1:123456789101:certificate/abcd1234-ef11-abcd-1234-abcd1234efef"
28+
}
2429

2530
ebs_options = {
2631
ebs_enabled = "true"

examples/advanced_security_options_master_user_name_pasword/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ module "aws_es" {
2626
}
2727
2828
domain_endpoint_options = {
29-
enforce_https = true
29+
enforce_https = true
30+
custom_endpoint_enabled = true
31+
custom_endpoint = "lgallardo.com"
32+
custom_endpoint_certificate_arn = "arn:aws:acm:us-east-1:123456789101:certificate/abcd1234-ef11-abcd-1234-abcd1234efef"
3033
}
3134
3235
ebs_options = {
@@ -52,7 +55,7 @@ module "aws_es" {
5255
region = data.aws_region.current.name,
5356
account = data.aws_caller_identity.current.account_id,
5457
domain_name = var.es_domain_name,
55-
whitelist = "${jsonencode(var.whitelist)}"
58+
whitelist = jsonencode(var.whitelist)
5659
})
5760
5861
node_to_node_encryption_enabled = "true"

examples/advanced_security_options_master_user_name_pasword/main.tf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ module "aws_es" {
2323
}
2424

2525
domain_endpoint_options = {
26-
enforce_https = true
26+
enforce_https = true
27+
custom_endpoint_enabled = true
28+
custom_endpoint = "lgallardo.com"
29+
custom_endpoint_certificate_arn = "arn:aws:acm:us-east-1:123456789101:certificate/abcd1234-ef11-abcd-1234-abcd1234efef"
2730
}
2831

2932
ebs_options = {
@@ -49,7 +52,7 @@ module "aws_es" {
4952
region = data.aws_region.current.name,
5053
account = data.aws_caller_identity.current.account_id,
5154
domain_name = var.es_domain_name,
52-
whitelist = jsonencode(var.whitelist)}
55+
whitelist = jsonencode(var.whitelist)
5356
})
5457

5558
node_to_node_encryption_enabled = "true"

0 commit comments

Comments
 (0)