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
-
arnoptional computed - string -
created_dateoptional computed - string -
idoptional computed - string -
last_updated_dateoptional computed - string -
mesh_namerequired - string -
mesh_owneroptional computed - string -
namerequired - string -
resource_owneroptional computed - string -
tagsoptional - map from string to string -
speclist block-
backend_defaultslist block-
client_policylist block-
tlslist block-
enforceoptional - bool -
portsoptional - set of number -
certificatelist block-
filelist block-
certificate_chainrequired - string -
private_keyrequired - string
-
-
sdslist block-
secret_namerequired - string
-
-
-
validationlist block-
subject_alternative_nameslist block -
trustlist block-
acmlist block-
certificate_authority_arnsrequired - set of string
-
-
filelist block-
certificate_chainrequired - string
-
-
sdslist block-
secret_namerequired - string
-
-
-
-
-
-
-
listenerlist block-
connection_poollist block-
grpclist block-
max_requestsrequired - number
-
-
httplist block-
max_connectionsrequired - number -
max_pending_requestsoptional - number
-
-
http2list block-
max_requestsrequired - number
-
-
-
health_checklist block-
healthy_thresholdrequired - number -
interval_millisrequired - number -
pathoptional - string -
portoptional computed - number -
protocolrequired - string -
timeout_millisrequired - number -
unhealthy_thresholdrequired - number
-
-
port_mappinglist block -
tlslist block-
moderequired - string -
certificatelist block-
acmlist block-
certificate_arnrequired - string
-
-
filelist block-
certificate_chainrequired - string -
private_keyrequired - string
-
-
sdslist block-
secret_namerequired - string
-
-
-
validationlist block-
subject_alternative_nameslist block -
trustlist block-
filelist block-
certificate_chainrequired - string
-
-
sdslist block-
secret_namerequired - string
-
-
-
-
-
-
logginglist block-
access_loglist 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
-
VirtualGatewayNameoptional - String -
MeshNamerequired - String -
MeshOwneroptional - String -
Specrequired - VirtualGatewaySpec -
Tagsoptional - 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.