vpc-endpoints

dod-iac/vpc-endpoints/aws

Terraform Module HCL AWS

Creates a set of VPC endpoints for the given VPC

Install
module "vpc-endpoints" {
source = "dod-iac/vpc-endpoints/aws"
version = "1.0.3"
}
plain text: /constructs/tfmod-dod-iac-vpc-endpoints-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates a set of VPC endpoints for the given VPC. ``hcl module "vpc" { source = "terraform-aws-modules/vpc/aws" version = "3.1.0" ... } resource "aws_security_group" "endpoint" { name = format("app-%s-vpc-endpoint", var.application) description = "A security group for PrivateLink endpoints" tags = var.tags vpc_id = module.vpc.vpc_id ingress { from_port = 443 to_port = 443 protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] } egress { from_port = 0 to_port = 0 protocol = "-1" cidr_blocks = ["0.0.0.0/0"] } lifecycle { create_before_destroy = true } } module "vpc_endpoints" { source = "dod-iac/vpc-endpoints/aws" route_table_ids = flatten([ module.vpc.intra_route_table_ids, module.vpc.private_route_table_ids, module.vpc.public_route_table_ids ]) security_group_ids = [aws_security_group.endpoint

Inputs (23)
NameTypeDescriptionDefault
vpc_idstringThe ID of the VPC in which the endpoint will be used required
enable_cloudwatch_endpointsboolEnable VPC endpoints for CloudWatch.true
enable_s3_endpointsboolEnable VPC endpoints for S3.true
enable_sqs_endpointsboolEnable VPC endpoints for SQS.true
route_table_idslist(string)One or more route table IDs. Applicable for endpoints of type Gateway.[]
subnet_idslist(string)The ID of one or more subnets in which to create a network interface for the end[]
timeout_updatestringDefault timeout for VPC endpoint modifications"10m"
enable_cloudtrail_endpointsboolEnable VPC endpoints for CloudTrail.true
enable_ecs_endpointsboolEnable VPC endpoints for ECS.true
enable_kms_endpointsboolEnable VPC endpoints for KMS.true
enable_sagemaker_endpointsboolEnable VPC endpoints for SageMaker.true
enable_sns_endpointsboolEnable VPC endpoints for SNS.true
timeout_deletestringDefault timeout for destroying VPC endpoints"10m"
tagsmap(string)Tags applied to the VPC endpoints{}
enable_ecr_endpointsboolEnable VPC endpoints for ECR.true
timeout_createstringDefault timeout for creating a VPC endpoint"10m"
enable_athena_endpointsboolEnable VPC endpoints for Athena.true
enable_ec2_endpointsboolEnable VPC endpoints for EC2.true
enable_lambda_endpointsboolEnable VPC endpoints for Lambda.true
enable_ssm_endpointsboolEnable VPC endpoints for SSM.true
enable_sts_endpointsboolEnable VPC endpoints for STS.true
Outputs (2)
endpoint_services
endpoints
Resources (1)
aws_vpc_endpoint
Topics & Tags
terraformvpcaws
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.3
Cloud AWS
★ Stars4
Forks2
Total downloads5.3k
Inputs23
Outputs2
Resources1
Examples1
LicenseMIT
Namespacedod-iac
Updated