AWS elasticloadbalancing documentation change
Summary
Added CloudFormation example and restructured security group update instructions with clearer section headers
Security assessment
The changes improve documentation about managing security groups (a security feature), but do not address any specific vulnerability. The added CloudFormation example helps implement security group configurations, which is security-related documentation.
Diff
diff --git a/elasticloadbalancing/latest/application/load-balancer-update-security-groups.md b/elasticloadbalancing/latest/application/load-balancer-update-security-groups.md index 3111f1db0..213529c2f 100644 --- a//elasticloadbalancing/latest/application/load-balancer-update-security-groups.md +++ b//elasticloadbalancing/latest/application/load-balancer-update-security-groups.md @@ -58 +58,4 @@ You can update the security groups associated with your load balancer at any tim -###### To update security groups using the console +Console + + +###### To update security groups @@ -75 +78,4 @@ You can update the security groups associated with your load balancer at any tim -###### To update security groups using the AWS CLI +AWS CLI + + +###### To update security groups @@ -78,0 +85,27 @@ Use the [set-security-groups](https://docs.aws.amazon.com/cli/latest/reference/e + + aws elbv2 set-security-groups \ + --load-balancer-arn load-balancer-arn \ + --security-groups sg-01dd3383691d02f42 sg-00f4e409629f1a42d + +CloudFormation + + +###### To update security groups + +Update the [AWS::ElasticLoadBalancingV2::LoadBalancer](https://docs.aws.amazon.com/AWSCloudFormation/latest/TemplateReference/aws-resource-elasticloadbalancingv2-loadbalancer.html) resource. + + + Resources: + myLoadBalancer: + Type: 'AWS::ElasticLoadBalancingV2::LoadBalancer' + Properties: + Name: my-alb + Type: application + Scheme: internal + Subnets: + - !Ref subnet-AZ1 + - !Ref subnet-AZ2 + SecurityGroups: + - !Ref mySecurityGroup + - !Ref myNewSecurityGroup +