AWS App Mesh Route
This page shows how to write Terraform and CloudFormation for App Mesh Route and write them securely.
aws_appmesh_route (Terraform)
The Route in App Mesh can be configured in Terraform with the resource name aws_appmesh_route. The following sections describe 5 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_appmesh_route" "blue" {
name = "service-route-blue"
mesh_name = aws_appmesh_mesh.mesh.id
virtual_router_name = aws_appmesh_virtual_router.this.name
spec {
resource "aws_appmesh_route" "service-b-route" {
name = "service-b-route"
mesh_name = aws_appmesh_mesh.fully-connected-mesh.name
virtual_router_name = aws_appmesh_virtual_router.service-b-router.name
spec {
resource "aws_appmesh_route" "template" {
name = var.name
mesh_name = var.mesh_name
virtual_router_name = var.virtual_router_name
spec {
resource "aws_appmesh_route" "template" {
name = var.name
mesh_name = var.mesh_name
virtual_router_name = var.virtual_router_name
spec {
resource "aws_appmesh_route" "route" {
count = length(var.route)
mesh_name = element(var.mesh_name, lookup(var.route[count.index], "mesh_id"))
name = lookup(var.route[count.index], "name")
virtual_router_name = element(var.virtual_router_name, lookup(var.route[count.index], "virtual_router_id"))
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 -
virtual_router_namerequired - string -
speclist block-
priorityoptional - number -
grpc_routelist block-
actionlist block-
weighted_targetset block-
virtual_noderequired - string -
weightrequired - number
-
-
-
matchlist block-
method_nameoptional - string -
prefixoptional - string -
service_nameoptional - string -
metadataset block
-
-
retry_policylist block-
grpc_retry_eventsoptional - set of string -
http_retry_eventsoptional - set of string -
max_retriesrequired - number -
tcp_retry_eventsoptional - set of string -
per_retry_timeoutlist block
-
-
timeoutlist block
-
-
http2_routelist block-
actionlist block-
weighted_targetset block-
virtual_noderequired - string -
weightrequired - number
-
-
-
matchlist block -
retry_policylist block-
http_retry_eventsoptional - set of string -
max_retriesrequired - number -
tcp_retry_eventsoptional - set of string -
per_retry_timeoutlist block
-
-
timeoutlist block
-
-
http_routelist block-
actionlist block-
weighted_targetset block-
virtual_noderequired - string -
weightrequired - number
-
-
-
matchlist block -
retry_policylist block-
http_retry_eventsoptional - set of string -
max_retriesrequired - number -
tcp_retry_eventsoptional - set of string -
per_retry_timeoutlist block
-
-
timeoutlist block
-
-
tcp_routelist block-
actionlist block-
weighted_targetset block-
virtual_noderequired - string -
weightrequired - number
-
-
-
timeoutlist block
-
-
Explanation in Terraform Registry
Provides an AWS App Mesh route resource.
AWS::AppMesh::Route (CloudFormation)
The Route in AppMesh can be configured in CloudFormation with the resource name AWS::AppMesh::Route. 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
-
MeshNamerequired - String -
VirtualRouterNamerequired - String -
MeshOwneroptional - String -
RouteNameoptional - String -
Specrequired - RouteSpec -
Tagsoptional - List of Tag
Explanation in CloudFormation Registry
Creates a route that is associated with a virtual router. You can route several different protocols and define a retry policy for a route. Traffic can be routed to one or more virtual nodes.
For more information about routes, see Routes.
Frequently asked questions
What is AWS App Mesh Route?
AWS App Mesh Route 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 Route?
For Terraform, the inhumantsar/ecs-terraform-demo, akestner/fully-connected-mesh and Yoyo-Kikuchi/aws-app-mesh-example source code examples are useful. See the Terraform Example section for further details.