HEX
Server: Apache
System: Linux vps28526 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
User: heewonvps_17 (6705002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/elb/apply-security-groups-to-load-balancer.rst
**To associate a security group with a load balancer in a VPC**

This example associates a security group with the specified load balancer in a VPC.

Command::

   aws elb apply-security-groups-to-load-balancer --load-balancer-name my-load-balancer --security-groups sg-fc448899

Output::

   {
     "SecurityGroups": [
         "sg-fc448899"
     ]
   }