Skip to content

[appmesh] Implement missing Route Match features  #11645

@dfezzie

Description

@dfezzie

There are fields that are currently not exposed in the App Mesh Route match spec. To enable different use cases, we need to allow customers to configure them for each route protocol.

Use Case

One of the most powerful features that this exposes is header based routing, but there are other use cases that customers can take advantage of. We also need to expose the priority field on the Route to disambiguate when multiple routes may match the same request

Proposed Solution

Here is an example:

router.addRoute('test-http-route', {
  routeSpec: appmesh.RouteSpec.http({
    match: {
      prefixPath: '/node',
      headers: [
        {
          match: appmesh.MatchCriteria.exact,
          name: 'foo',
          invert: false,
        },
      ],
      ...
    }
    ...
    weightedTargets: [
      {
         virtualNode: node,
      },
    ],
  }),
});

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-appmeshRelated to AWS App Mesheffort/mediumMedium work item – several days of effortfeature-requestA feature should be added or improved.p2

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions