Skip to content

x-qdo/terraform-aws-privatelink

 
 

Repository files navigation

terraform-aws-privatelink

AWS Privatelink module

This terraform module creates the neccessary components for an AWS Privatelink service.

This module requires either a default profile to access AWS or use the environment variable AWS_PROFILE

terraform init
terraform apply --auto-approve

Requirements

Name Version
terraform >= 0.13
aws >= 5.79.0

Providers

Name Version
aws >= 5.79.0

Modules

No modules.

Resources

Name Type
aws_ec2_tag.name resource
aws_sns_topic.name resource
aws_vpc_endpoint_connection_notification.name resource
aws_vpc_endpoint_service.name resource
aws_vpc_endpoint_service_allowed_principal.name resource
aws_region.current data source

Inputs

Name Description Type Default Required
acceptance_required Acceptance required on the privatelink access bool true no
allowed_principals Allowed principals to access your service, applies Tags to each principal
list(object({
principal = string
tags = optional(list(map(any)))
}))
[
{
"principal": "arn:aws:iam::123456789012:root",
"tags": [
{
"key": "Customer",
"value": "Default1"
}
]
}
]
no
create_topic Create an SNS Topic to recieve notification events bool false no
enable_notifications Create Notifications for endpoint activity bool false no
endpoint_connection_notification_events List of connection events on your service endpoint list(string)
[
"Accept",
"Reject"
]
no
gateway_load_balancer_arns Arn of a Gateway Load balancer list(string) null no
network_load_balancer_arns Arn of a network loadbalancer list(string) null no
private_dns_name Private DNS name for endpoint string null no
service_name Name of the Endpoint service string "default-name" no
service_tags Map of tags for the service map(any) {} no
supported_ip_address_types List of Support IP Address Types list(string)
[
"ipv4"
]
no
supported_regions The set of regions from which service consumers can access the service. list(string) [] no

Outputs

Name Description
endpoint_service_arn VPC Endpoint Service ARN
endpoint_service_details Object of all Outputs from the VPC Endpoint Service
principals Map of Principals to Service Endpoint ID
tags Tags which where applied to the Service Principals

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%