HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //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"
     ]
   }