aws-solutions / media-services-application-mapper

Media Services Application Mapper is a browser-based tool that allows operators to visualize the structure and logical connections among AWS Media Services and supporting services in the cloud. The tool can be used as a top-down resource monitoring tool when integrated with CloudWatch.
Apache License 2.0
83 stars 34 forks source link

For EMX to EMX Entitled connections, don't search for inner Flow matches since there won't be any #378

Closed davemevans closed 1 year ago

davemevans commented 1 year ago

Issue #, if available: N/A.

Description of changes: In the connections lambda, when searching for EMX to EMX connections, when the Source is an Entitlement, do not search for matches since there won't be any.

This also stops the code section below dealing with VPC inputs from throwing an exception when the Source is an Entitlement and there is a VPC Interface attached that is used for output only (since the Flow will not have the assumed Source->Transport attribute)

Also added an example Flow for testing to prove out the change.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

davemevans commented 1 year ago

Apologies, opened against the wrong branch. Will try again.