You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LukvonStrom
changed the title
(ecs-patterns): NetworkLoadBalancedServiceBase and NetworkMultipleTargetGroupsServiceBase default to port 80 on target group
(ecs-patterns): NetworkLoadBalancedServiceBase and NetworkMultipleTargetGroupsServiceBase hardcode port 80 on target group
Dec 17, 2021
…Patterns (#18157)
This PR introduces changeable ports as a regression fix for the hardcoded port 80 in both NLB constructs bases.
Closes#18073
Additionally it seems like the regression reported in the linked issue was not spotted in the integration tests either.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
TikiTDO
pushed a commit
to TikiTDO/aws-cdk
that referenced
this issue
Feb 21, 2022
…Patterns (aws#18157)
This PR introduces changeable ports as a regression fix for the hardcoded port 80 in both NLB constructs bases.
Closesaws#18073
Additionally it seems like the regression reported in the linked issue was not spotted in the integration tests either.
----
*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
What is the problem?
As stated in the title, both base classes default to port 80 for the Loadbalancer TargetGroup.
The culprit for NetworkLoadBalancedServiceBase is located here: https://github.com/aws/aws-cdk/blob/v2-main/packages/@aws-cdk/aws-ecs-patterns/lib/base/network-load-balanced-service-base.ts#L345
it needs to be changed to something like this:
The culprit for NetworkMultipleTargetGroupsServiceBase is located here: https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-ecs-patterns/lib/base/network-multiple-target-groups-service-base.ts#L377
it needs to be
to result in
Reproduction Steps
I will provide a sample for the NetworkLoadBalancedServiceBase bug:
What did you expect to happen?
I expected the Target Group to look like this:
What actually happened?
The Target Group looked like this:
when implementing
the bug was fixed.
CDK CLI Version
2.2.0 (build 4f5c27c)
Framework Version
No response
Node.js Version
v16.13.0
OS
WSL 2 on Ubuntu
Language
Typescript
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: