Skip to content

Commit 645d4e9

Browse files
authored
feat(elasticloadbalancingv2): add security group support for nlb (#27978)
Closes #26735. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 25ee8ef commit 645d4e9

File tree

13 files changed

+576
-108
lines changed

13 files changed

+576
-108
lines changed

packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/aws-cdk-elbv2-integ.assets.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/aws-cdk-elbv2-integ.template.json

+33
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,31 @@
391391
}
392392
}
393393
},
394+
"SGADB53937": {
395+
"Type": "AWS::EC2::SecurityGroup",
396+
"Properties": {
397+
"GroupDescription": "aws-cdk-elbv2-integ/SG",
398+
"SecurityGroupEgress": [
399+
{
400+
"CidrIp": "0.0.0.0/0",
401+
"Description": "Allow all outbound traffic by default",
402+
"IpProtocol": "-1"
403+
}
404+
],
405+
"SecurityGroupIngress": [
406+
{
407+
"CidrIp": "0.0.0.0/0",
408+
"Description": "allow https access from the world",
409+
"FromPort": 443,
410+
"IpProtocol": "tcp",
411+
"ToPort": 443
412+
}
413+
],
414+
"VpcId": {
415+
"Ref": "VPCB9E5F0B4"
416+
}
417+
}
418+
},
394419
"LB8A12904C": {
395420
"Type": "AWS::ElasticLoadBalancingV2::LoadBalancer",
396421
"Properties": {
@@ -401,6 +426,14 @@
401426
}
402427
],
403428
"Scheme": "internet-facing",
429+
"SecurityGroups": [
430+
{
431+
"Fn::GetAtt": [
432+
"SGADB53937",
433+
"GroupId"
434+
]
435+
}
436+
],
404437
"Subnets": [
405438
{
406439
"Ref": "VPCPublicSubnet1SubnetB4246D30"

packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/cdk.out

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/elbv2integDefaultTestDeployAssert6120E394.assets.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/integ.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/@aws-cdk-testing/framework-integ/test/aws-elasticloadbalancingv2/test/integ.nlb.js.snapshot/manifest.json

+10-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)