Skip to content

Creates a VPC Endpoint to a Shared Service Proxy for On-Premise Service connected through DirectConnect

License

Notifications You must be signed in to change notification settings

mietlinski-nc/terraform-aws-shared-proxy-vpc-endpoint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Terraform module to deploy VPC Endpoint and Route53 records for corresponding VPC Endpoint Service

This module will create consumer-side of VPC Endpoint Service - the VPC Endpoint and R53 private hosted zones with records matching targets of NLB created for the Endpoint Service (see repository: https://github.com/kentrikos/terraform-aws-shared-proxy-vpc-endpoint-service). Sharing information about targets between producer and consumer side of connection is implemented with S3 bucket.

Preparations

Usage

module "vpc-endpoint-test" {
  source = "github.com/kentrikos/terraform-aws-shared-proxy-vpc-endpoint.git"

  vpc_endpoint_service_name = "${var.vpc_endpoint_service_name}"
  vpc_id                    = "${var.vpc_id}"
  subnets                   = "${var.subnets}"
}

Notes/limitations:

  • Targets on producer-side that share exactly the same DNS name and only differ by ports may cause conflicts when creating R53 records. To workaround (or customize R53 entries) you can provide custom list of targets via alternative_bucket_name_for_targets variable.
  • When releasing new version (tag) of this module it is recommended to update default value for ConfigRepoBranch parameter in bootstrap/codebuild_setup.yaml and ?ref parameter for module's source in bootstrap/configuration_repo_template/main.tf.

Inputs

Name Description Type Default Required
alternative_bucket_name_for_targets Custom S3 bucket name for list of targets for which to create R53 entries (leave empty to use default) string `` no
common_tag Single tag to be assigned to each resource (that supports tagging) created by this module map <map> no
subnets A list of subnet IDs for VPC Endpoint list <list> no
vpc_endpoint_service_name Name of VPC Endpoint Service to which attach VPC Endpoint string - yes
vpc_id The identifier of the VPC for VPC Endpoint string - yes

Outputs

Name Description
r53_private_zones List of names of private Route53 zones created
r53_records List of names of Route53 records created
vpce_id The ID of the VPC endpoint

About

Creates a VPC Endpoint to a Shared Service Proxy for On-Premise Service connected through DirectConnect

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages