Skip to content

(appmesh): virtual node validation doesn't catch adding more than one listener to a node #13549

@misterjoshua

Description

@misterjoshua

The VirtualNode construct allows you to add more than one listener, but CloudFormation doesn't support more than one listener at a time. (CFN Docs)

Reproduction Steps

Add more than one listener to a Virtual Node and try to deploy.

new appmesh.VirtualNode(stack, 'VirtualNode', {
  mesh: appmesh.Mesh.fromMeshName(stack, 'Mesh', meshName),
  listeners: [
    appmesh.VirtualNodeListener.http(),
    appmesh.VirtualNodeListener.grpc(),
  ],
});

What did you expect to happen?

VirtualNode should throw an error when it detects my attempt to add a second listener.

What actually happened?

It successfully synthesized but failed to deploy a stack.

Environment

  • CDK CLI Version : 1.93.0
  • Framework Version: 1.93.0
  • Node.js Version: v14.15.1
  • OS : Linux
  • Language (Version): all

This is 🐛 Bug Report

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-appmeshRelated to AWS App MeshbugThis issue is a bug.needs-triageThis issue or PR still needs to be triaged.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions