Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions terraform-modules/aws/vpc-endpoint/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
## Requirements

No requirements.

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_vpc_endpoint.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc_endpoint) | resource |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| <a name="input_service_name"></a> [service\_name](#input\_service\_name) | The service name for the VPC endpoint | `any` | n/a | yes |
| <a name="input_vpc_endpoint_type"></a> [vpc\_endpoint\_type](#input\_vpc\_endpoint\_type) | The type of VPC endpoint to create | `any` | n/a | yes |
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | The ID of the VPC in which to create the VPC endpoint | `any` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| <a name="output_dns_entry"></a> [dns\_entry](#output\_dns\_entry) | Represents the fully qualified domain name (FQDN) of the VPC endpoint. |
| <a name="output_dns_name"></a> [dns\_name](#output\_dns\_name) | Represents the DNS name for the VPC endpoint service. |
9 changes: 9 additions & 0 deletions terraform-modules/aws/vpc-endpoint/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "aws_vpc_endpoint" "this" {
count = var.exists == true ? 1 : 0
vpc_id = var.vpc_id
service_name = var.service_name
vpc_endpoint_type = var.vpc_endpoint_type
private_dns_enabled = true
}


9 changes: 9 additions & 0 deletions terraform-modules/aws/vpc-endpoint/outputs.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
output "dns_entry" {
value = aws_vpc_endpoint.this[0].dns_entry
description = "Represents the fully qualified domain name (FQDN) of the VPC endpoint."
}

output "dns_name" {
value = aws_vpc_endpoint.this[0].dns_name
description = "Represents the DNS name for the VPC endpoint service."
}
11 changes: 11 additions & 0 deletions terraform-modules/aws/vpc-endpoint/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
variable "vpc_id" {
description = "The ID of the VPC in which to create the VPC endpoint"
}

variable "service_name" {
description = "The service name for the VPC endpoint"
}

variable "vpc_endpoint_type" {
description = "The type of VPC endpoint to create"
}