The App Mesh Route data source allows details of an App Mesh Route to be retrieved by its name, mesh_name, virtual_router_name, and optionally the mesh_owner.
data "aws_appmesh_virtual_service" "test" {
name = "test-route"
mesh_name = "test-mesh"
virtual_router_name = "test-router"
}
This data source supports the following arguments:
name
- (Required) Name of the route.mesh_name
- (Required) Name of the service mesh in which the virtual router exists.virtual_router_name
- (Required) Name of the virtual router in which the route exists.mesh_owner
- (Optional) AWS account ID of the service mesh's owner.This data source exports the following attributes in addition to the arguments above:
arn
- ARN of the route.created_date
- Creation date of the route.last_updated_date
- Last update date of the route.resource_owner
- Resource owner's AWS account ID.spec
- Route specification. See the aws_appmesh_route
resource for details.tags
- Map of tags.