-
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
ecs-patterns: enable to specify securityGroups
in NetworkLoadBalancedFargateService
#29430
ecs-patterns: enable to specify securityGroups
in NetworkLoadBalancedFargateService
#29430
Comments
Yes I think now that NLB supports security group, we probably should expose that as a optional prop to the surface. I will invite the maintainers for more input on this. |
The proposed solution looks good to me. I see there's already a PR opened to fix the issue. Thanks for the contribution. Will review the PR. |
|
…argateService` (#29431) ### Issue # (if applicable) Closes #29430 (related to #29186 (comment)) ### Reason for this change We can't specify `securityGroups` in `NetworkLoadBalancedFargateService` now. ### Description of changes - Add `securityGroups` property to `NetworkLoadBalancedFargateServiceProps`. - Add unit test - Add integ test ### Description of how you validated changes - Pass unit test - Pass integ test ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the feature
We can't specify
securityGroups
inNetworkLoadBalancedFargateService
now.Use Case
Default is an empty array, so we have to specify
securityGroups
.aws-cdk/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/nlb/network-load-balancer.ts
Lines 206 to 216 in 730fe63
Proposed Solution
Add
securityGroups
property toNetworkLoadBalancedFargateServiceProps
.aws-cdk/packages/aws-cdk-lib/aws-ecs-patterns/lib/fargate/network-load-balanced-fargate-service.ts
Lines 9 to 28 in 730fe63
Other Information
ApplicationLoadBalancedFargateServiceProps
hassecurityGroups
property already.aws-cdk/packages/aws-cdk-lib/aws-ecs-patterns/lib/fargate/application-load-balanced-fargate-service.ts
Lines 26 to 31 in 730fe63
Acknowledgements
CDK version used
v2.132.0
Environment details (OS name and version, etc.)
Darwin tagawahirotakanoMacBook-Pro.local 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 arm64
The text was updated successfully, but these errors were encountered: