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
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 = {}
resource "aws_appmesh_virtual_gateway" "vgateway" {
name = "test-vg"
mesh_name = aws_appmesh_mesh.main.name
spec {
listener {
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
-
arn
optional computed - string -
created_date
optional computed - string -
id
optional computed - string -
last_updated_date
optional computed - string -
mesh_name
required - string -
mesh_owner
optional computed - string -
name
required - string -
resource_owner
optional computed - string -
tags
optional - map from string to string -
spec
list block-
backend_defaults
list block-
client_policy
list block-
tls
list block-
enforce
optional - bool -
ports
optional - set of number -
certificate
list block-
file
list block-
certificate_chain
required - string -
private_key
required - string
-
-
sds
list block-
secret_name
required - string
-
-
-
validation
list block-
subject_alternative_names
list block -
trust
list block-
acm
list block-
certificate_authority_arns
required - set of string
-
-
file
list block-
certificate_chain
required - string
-
-
sds
list block-
secret_name
required - string
-
-
-
-
-
-
-
listener
list block-
connection_pool
list block-
grpc
list block-
max_requests
required - number
-
-
http
list block-
max_connections
required - number -
max_pending_requests
optional - number
-
-
http2
list block-
max_requests
required - number
-
-
-
health_check
list block-
healthy_threshold
required - number -
interval_millis
required - number -
path
optional - string -
port
optional computed - number -
protocol
required - string -
timeout_millis
required - number -
unhealthy_threshold
required - number
-
-
port_mapping
list block -
tls
list block-
mode
required - string -
certificate
list block-
acm
list block-
certificate_arn
required - string
-
-
file
list block-
certificate_chain
required - string -
private_key
required - string
-
-
sds
list block-
secret_name
required - string
-
-
-
validation
list block-
subject_alternative_names
list block -
trust
list block-
file
list block-
certificate_chain
required - string
-
-
sds
list block-
secret_name
required - string
-
-
-
-
-
-
logging
list block-
access_log
list block
-
-
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
-
VirtualGatewayName
optional - String -
MeshName
required - String -
MeshOwner
optional - String -
Spec
required - VirtualGatewaySpec -
Tags
optional - List of Tag
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.