Skip to content

Latest commit

 

History

History

complete-vpc-with-vpn

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Complete VPC with VPN

This configuration is suitable for production environments

NAT Gateways, public, database,intra and Private subnets will be created in each availability zone. Additionally by default, an EC2 instance which will act as a VPN server will be created.

Usage

To run this example you need to execute:

$ terraform init
$ terraform plan
$ terraform apply

Note that this example may create resources which can cost money (AWS Elastic IP, for example). Run terraform destroy when you don't need these resources.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

Name Source Version
key_pair_vpn squareops/keypair/aws 1.0.2
kms terraform-aws-modules/kms/aws 3.1.0
vpc squareops/vpc/aws 3.3.5

Resources

Name Type
aws_caller_identity.current data source

Inputs

No inputs.

Outputs

Name Description
database_subnets List of IDs of database subnets
intra_subnets List of IDs of Intra subnets
private_subnets List of IDs of private subnets
public_subnets List of IDs of public subnets
region AWS Region
vpc_cidr_block AWS Region
vpc_id The ID of the VPC
vpn_host_public_ip IP Adress of VPN Server
vpn_security_group Security Group ID of VPN Server