Skip to content

Commit cda5a62

Browse files
authored
Output vpce endpoint (#41)
1 parent 8498488 commit cda5a62

File tree

10 files changed

+59
-25
lines changed

10 files changed

+59
-25
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
repos:
22
- repo: https://github.com/gruntwork-io/pre-commit
3-
rev: v0.1.17
3+
rev: v0.1.23
44
hooks:
5-
- id: terraform-fmt
6-
- id: terraform-validate
7-
- id: markdown-link-check
85
- id: shellcheck
96

7+
- repo: https://github.com/tcort/markdown-link-check
8+
rev: v3.12.1
9+
hooks:
10+
- id: markdown-link-check
11+
args:
12+
- "--config=mlc_config.json"
13+
1014
- repo: https://github.com/antonbabenko/pre-commit-terraform
11-
rev: v1.64.0
15+
rev: v1.89.0
1216
hooks:
17+
- id: terraform_fmt
18+
- id: terraform_providers_lock
19+
args:
20+
- --args=-platform=linux_amd64
21+
- id: terraform_validate
1322
- id: terraform_tflint
1423
args:
1524
- --args=--module
@@ -22,9 +31,12 @@ repos:
2231
- id: terraform_tfsec
2332
args:
2433
- --args=--exclude-downloaded-modules
25-
- id: checkov
34+
- id: terraform_checkov
35+
args:
36+
- "--args=--skip-check CKV_TF_1"
37+
2638
- repo: https://github.com/pre-commit/pre-commit-hooks
27-
rev: v4.1.0
39+
rev: v4.6.0
2840
hooks:
2941
# Git style
3042
- id: check-added-large-files

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Opensearch
22

3+
<!-- BEGIN_TF_DOCS -->
34
## Requirements
45

56
| Name | Version |
@@ -117,4 +118,6 @@ No modules.
117118
| <a name="output_domain_id"></a> [domain\_id](#output\_domain\_id) | Unique identifier for the Cluster |
118119
| <a name="output_domain_name"></a> [domain\_name](#output\_domain\_name) | Name of the OpenSearch Cluster |
119120
| <a name="output_vpc_endpoint_dns_names"></a> [vpc\_endpoint\_dns\_names](#output\_vpc\_endpoint\_dns\_names) | VPC endpoint DNS names |
120-
| <a name="output_vpc_endpoint_id"></a> [vpc\_endpoint\_id](#output\_vpc\_endpoint\_id) | VPC endpoint ID |
121+
| <a name="output_vpc_endpoint_endpoint"></a> [vpc\_endpoint\_endpoint](#output\_vpc\_endpoint\_endpoint) | The connection endpoint ID for connecting to the domain |
122+
| <a name="output_vpc_endpoint_id"></a> [vpc\_endpoint\_id](#output\_vpc\_endpoint\_id) | The unique identifier of the endpoint |
123+
<!-- END_TF_DOCS -->

modules/dashboard/index-pattern/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
## Requirements
23

34
| Name | Version |
@@ -9,7 +10,7 @@
910

1011
| Name | Version |
1112
|------|---------|
12-
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | >= 1.0 |
13+
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | 2.2.1 |
1314

1415
## Modules
1516

@@ -34,3 +35,4 @@ No modules.
3435
| Name | Description |
3536
|------|-------------|
3637
| <a name="output_id"></a> [id](#output\_id) | The ID of the index pattern |
38+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/dashboard/tenant/README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
## Requirements
23

34
| Name | Version |
45
|------|---------|
5-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.4 |
6-
| <a name="requirement_opensearch"></a> [opensearch](#requirement\_opensearch) | >= 2.0 |
6+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.4 |
7+
| <a name="requirement_opensearch"></a> [opensearch](#requirement\_opensearch) | >= 2.0 |
78

89
## Providers
910

1011
| Name | Version |
1112
|------|---------|
12-
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | >= 2.0 |
13+
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | 2.2.1 |
1314

1415
## Modules
1516

@@ -25,9 +26,12 @@ No modules.
2526

2627
| Name | Description | Type | Default | Required |
2728
|------|-------------|------|---------|:--------:|
28-
| <a name="input_description"></a> [description](#input\_description) | The dashboard tenant description | `string` | `""` | no |
29-
| <a name="input_name"></a> [name](#input\_name) | The dashboard tenant name | `string` | n/a | yes |
29+
| <a name="input_description"></a> [description](#input\_description) | Dashboard tenant description | `string` | `""` | no |
30+
| <a name="input_name"></a> [name](#input\_name) | Dashboard tenant name | `string` | n/a | yes |
3031

3132
## Outputs
3233

33-
No outputs.
34+
| Name | Description |
35+
|------|-------------|
36+
| <a name="output_id"></a> [id](#output\_id) | The ID of the dashboard tenant |
37+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/ingestion/iam/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
## Requirements
23

34
| Name | Version |
@@ -9,7 +10,7 @@
910

1011
| Name | Version |
1112
|------|---------|
12-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.67.0 |
13+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.46.0 |
1314

1415
## Modules
1516

@@ -22,7 +23,7 @@
2223

2324
| Name | Type |
2425
|------|------|
25-
| [aws_iam_policy_document.opensearch](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
26+
| [aws_iam_policy_document.opensearch_ingestion](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
2627

2728
## Inputs
2829

@@ -39,3 +40,4 @@
3940
| <a name="output_opensearch_ingestion_policy_arn"></a> [opensearch\_ingestion\_policy\_arn](#output\_opensearch\_ingestion\_policy\_arn) | ARN of the Opensearch ingestion policy |
4041
| <a name="output_pipeline_role_arn"></a> [pipeline\_role\_arn](#output\_pipeline\_role\_arn) | ARN of the Opensearch ingestion pipeline role |
4142
| <a name="output_pipeline_role_name"></a> [pipeline\_role\_name](#output\_pipeline\_role\_name) | Name of the Opensearch ingestion pipeline role |
43+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/ingestion/pipeline/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
## Requirements
23

34
| Name | Version |
@@ -9,7 +10,7 @@
910

1011
| Name | Version |
1112
|------|---------|
12-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.36.0 |
13+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.46.0 |
1314

1415
## Modules
1516

@@ -24,16 +25,14 @@ No modules.
2425
| [aws_iam_role_policy_attachment.cloudwatch](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy_attachment) | resource |
2526
| [aws_osis_pipeline.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/osis_pipeline) | resource |
2627
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
27-
| [aws_default_tags.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/default_tags) | data source |
28-
| [aws_iam_policy_document.cloudwatch_log_group](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
2928
| [aws_iam_policy_document.pipeline_cloudwatch](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
3029
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
3130

3231
## Inputs
3332

3433
| Name | Description | Type | Default | Required |
3534
|------|-------------|------|---------|:--------:|
36-
| <a name="input_cloudwatch_kms_key_id"></a> [cloudwatch\_kms\_key\_id](#input\_cloudwatch\_kms\_key\_id) | (Optional) Use a custom KMS key ID to encrypt Cloudwatch logs. If not specified, then it defaults to using the AWS KMS key. | `string` | `""` | no |
35+
| <a name="input_cloudwatch_kms_key_id"></a> [cloudwatch\_kms\_key\_id](#input\_cloudwatch\_kms\_key\_id) | (Optional) KMS key ID for Cloudwatch logs | `string` | `null` | no |
3736
| <a name="input_configuration_body"></a> [configuration\_body](#input\_configuration\_body) | The Data Prepper pipeline configuration in YAML format | `string` | n/a | yes |
3837
| <a name="input_enable_logging"></a> [enable\_logging](#input\_enable\_logging) | If true, will create a cloudwatch log group to monitor the pipeline | `bool` | `true` | no |
3938
| <a name="input_iam_role_name"></a> [iam\_role\_name](#input\_iam\_role\_name) | Name of the pipeline IAM role | `string` | n/a | yes |
@@ -53,3 +52,4 @@ No modules.
5352
| <a name="output_arn"></a> [arn](#output\_arn) | ARN of the ingestion pipeline |
5453
| <a name="output_id"></a> [id](#output\_id) | ID of the ingestion pipeline |
5554
| <a name="output_ingest_endpoint_urls"></a> [ingest\_endpoint\_urls](#output\_ingest\_endpoint\_urls) | The ingestion endpoints for the pipeline that you can send data to |
55+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/ism/policy/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
## Requirements
23

34
| Name | Version |
@@ -9,7 +10,7 @@
910

1011
| Name | Version |
1112
|------|---------|
12-
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | >= 1.0 |
13+
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | 2.2.1 |
1314

1415
## Modules
1516

@@ -31,3 +32,4 @@ No modules.
3132
## Outputs
3233

3334
No outputs.
35+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/ism/template/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
## Requirements
23

34
| Name | Version |
@@ -9,7 +10,7 @@
910

1011
| Name | Version |
1112
|------|---------|
12-
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | >= 1.0 |
13+
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | 2.2.1 |
1314

1415
## Modules
1516

@@ -33,3 +34,4 @@ No modules.
3334
| Name | Description |
3435
|------|-------------|
3536
| <a name="output_id"></a> [id](#output\_id) | The ID of the index template |
37+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/role/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
12
## Requirements
23

34
| Name | Version |
@@ -9,7 +10,7 @@
910

1011
| Name | Version |
1112
|------|---------|
12-
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | >= 2.0 |
13+
| <a name="provider_opensearch"></a> [opensearch](#provider\_opensearch) | 2.2.1 |
1314

1415
## Modules
1516

@@ -39,3 +40,4 @@ No modules.
3940
| Name | Description |
4041
|------|-------------|
4142
| <a name="output_id"></a> [id](#output\_id) | The ID of the role |
43+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

outputs.tf

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ output "domain_endpoint" {
1919
}
2020

2121
output "vpc_endpoint_id" {
22-
description = "VPC endpoint ID"
22+
description = "The unique identifier of the endpoint"
2323
value = var.create_vpc_endpoint ? aws_opensearch_vpc_endpoint.this[0].id : null
2424
}
2525

26+
output "vpc_endpoint_endpoint" {
27+
description = "The connection endpoint ID for connecting to the domain"
28+
value = var.create_vpc_endpoint ? aws_opensearch_vpc_endpoint.this[0].endpoint : null
29+
}
30+
2631
output "vpc_endpoint_dns_names" {
2732
description = "VPC endpoint DNS names"
2833
value = var.create_vpc_endpoint ? [for entry in data.aws_vpc_endpoint.this[0].dns_entry : entry.dns_name] : []

0 commit comments

Comments
 (0)