AWS App Mesh Virtual Gateway

This page shows how to write Terraform and CloudFormation for App Mesh Virtual Gateway and write them securely.

aws_appmesh_virtual_gateway (Terraform)

The Virtual Gateway in App Mesh can be configured in Terraform with the resource name aws_appmesh_virtual_gateway. The following sections describe 3 examples of how to use the resource and its parameters.

Example Usage from GitHub

aws_appmesh_virtual_gateway__howto-k8s-ingress-gateway__ingress-gw_howto-k8s-ingress-gateway.tf#L3
resource "aws_appmesh_virtual_gateway" "howto-k8s-ingress-gateway__ingress-gw_howto-k8s-ingress-gateway" {
  mesh_name  = "howto-k8s-ingress-gateway"
  mesh_owner = data.aws_caller_identity.current.account_id
  name       = "ingress-gw_howto-k8s-ingress-gateway"
  tags       = {}

virtualg_gateway.tf#L56
resource "aws_appmesh_virtual_gateway" "vgateway" {
  name      = "test-vg"
  mesh_name = aws_appmesh_mesh.main.name

  spec {
    listener {
pr-preview-example-com.tf#L1
resource "aws_appmesh_virtual_gateway" "pr-preview-example-com" {
  name      = "pr-preview-example-com"
  mesh_name = aws_appmesh_mesh.pr-preview-mesh.name

  spec {
    listener {

Parameters

Explanation in Terraform Registry

Provides an AWS App Mesh virtual gateway resource.

AWS::AppMesh::VirtualGateway (CloudFormation)

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

Example Usage from GitHub

An example could not be found in GitHub.

Parameters

Explanation in CloudFormation Registry

Creates a virtual gateway.

A virtual gateway allows resources outside your mesh to communicate to resources that are inside your mesh. The virtual gateway represents an Envoy proxy running in an Amazon ECS task, in a Kubernetes service, or on an Amazon EC2 instance. Unlike a virtual node, which represents an Envoy running with an application, a virtual gateway represents Envoy deployed by itself.

For more information about virtual gateways, see Virtual gateways.

Frequently asked questions

What is AWS App Mesh Virtual Gateway?

AWS App Mesh Virtual Gateway is a resource for App Mesh of Amazon Web Service. Settings can be wrote in Terraform and CloudFormation.

Where can I find the example code for the AWS App Mesh Virtual Gateway?

For Terraform, the awsandy/Terraform-EKS-Code, g31s/terraform-aws-ecs-fargate and scribd/pr-preview-example source code examples are useful. See the Terraform Example section for further details.