-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(app-mesh): WeightedTarget construct is missing port property #26083
Comments
Yes we should add the aws-cdk/packages/aws-cdk-lib/aws-appmesh/lib/route-spec.ts Lines 15 to 27 in a79794e
And probably modify here as well aws-cdk/packages/aws-cdk-lib/aws-appmesh/lib/route-spec.ts Lines 600 to 609 in a79794e
|
Thanks @pahud! Already created a PR with the required changes, hope this fits you well 😄 |
As described in the related issue, `WeightedTarget` L2 construct was missing `port` property which is already present in the L1 construct `CfnRoute`. This PR adds the missing `port` property to `WeightedTarget` L2 construct. The PR includes unit tests expansion to cover this new property appearance or absence. Closes #26083. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
As described in the related issue, `WeightedTarget` L2 construct was missing `port` property which is already present in the L1 construct `CfnRoute`. This PR adds the missing `port` property to `WeightedTarget` L2 construct. The PR includes unit tests expansion to cover this new property appearance or absence. Closes aws#26083. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
As described in the related issue, `WeightedTarget` L2 construct was missing `port` property which is already present in the L1 construct `CfnRoute`. This PR adds the missing `port` property to `WeightedTarget` L2 construct. The PR includes unit tests expansion to cover this new property appearance or absence. Closes aws#26083. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the bug
While the
CfnRoute
give us the ability to define a route with weighted targets with a port, the L2 constructWeightedTarget
does not have that property (only havevirtual_node
andweight
), leveraging us to use L1 constructs instead if we want to use the port specification.Port is required for routes to nodes that have multiple listeners.
Expected Behavior
WeightedTarget
L2 construct also let us specify theport
option.Current Behavior
WeightedTarget
L2 construct does not have the propertyport
.Reproduction Steps
Example in python; the following is not valid code:
We need to use L1 construct, to get the same result:
Possible Solution
Add the
Port
property to the construct interface, since is already a property in the CloudFormation specs.Additional Information/Context
No response
CDK CLI Version
2.85.0
Framework Version
2.85.0
Node.js Version
v16.14.2
OS
MacOs Ventura
Language
Python
Language Version
python 3.11.1
Other information
I have checked through the CDK docs that typescript CDK version have the same issue, so I guess this applies to all languages available.
I can work in a fix if there is no reason to not work on this fix.
The text was updated successfully, but these errors were encountered: