AWS Amazon EC2 Client VPN Endpoint

This page shows how to write Terraform and CloudFormation for Amazon EC2 Client VPN Endpoint and write them securely.

aws_ec2_client_vpn_endpoint (Terraform)

The Client VPN Endpoint in Amazon EC2 can be configured in Terraform with the resource name aws_ec2_client_vpn_endpoint. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

github-iconsimplyviki/terr1
resource "aws_ec2_client_vpn_endpoint" "client_vpn" {
  description            = var.description
  server_certificate_arn = var.server_certificate_arn
  client_cidr_block      = var.client_cidr_block
  split_tunnel           = var.split_tunnel
  depends_on             = [var.cloudwatch_log_stream_name]
github-iconarthurngatat/Tia-first-copy
resource "aws_ec2_client_vpn_endpoint" "client_vpn" {
  description            = var.description
  server_certificate_arn = var.server_certificate_arn
  client_cidr_block      = var.client_cidr_block
  split_tunnel           = var.split_tunnel
  depends_on             = [var.cloudwatch_log_stream_name]
github-iconataylor05/terraform
resource "aws_ec2_client_vpn_endpoint" "vpc_ssl_client_vpn" {
  description            = var.client_vpn_name
  server_certificate_arn = var.asm_server_cert
  client_cidr_block      = var.client_cidr_block
  split_tunnel           = var.split_tunnel
  transport_protocol     = "udp"

Parameters

Explanation in Terraform Registry

Provides an AWS Client VPN endpoint for OpenVPN clients. For more information on usage, please see the AWS Client VPN Administrator's Guide.

AWS::EC2::ClientVpnEndpoint (CloudFormation)

The ClientVpnEndpoint in EC2 can be configured in CloudFormation with the resource name AWS::EC2::ClientVpnEndpoint. The following sections describe how to use the resource and its parameters.

Parameters

Explanation in CloudFormation Registry

Specifies a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.

Frequently asked questions

What is AWS Amazon EC2 Client VPN Endpoint?

AWS Amazon EC2 Client VPN Endpoint is a resource for Amazon EC2 of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS Amazon EC2 Client VPN Endpoint?

For Terraform, the simplyviki/terr1, arthurngatat/Tia-first-copy and ataylor05/terraform source code examples are useful. See the Terraform Example section for further details.