elasticloadbalancing:ApplySecurityGroupsToLoadBalancer is a Write access-level action in the elasticloadbalancing service. Grants permission to associate one or more security groups with your load balancer in a virtual private cloud (VPC)
ARNs that elasticloadbalancing:ApplySecurityGroupsToLoadBalancer can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants elasticloadbalancing:ApplySecurityGroupsToLoadBalancer.
Filters access by a tag key and value pair of a resource
Filters access by the preface string for a tag key and value pair that are attached to a resource
A minimal policy that allows elasticloadbalancing:ApplySecurityGroupsToLoadBalancer. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowElasticloadbalancingApplySecurityGroupsToLoadBalancer",
"Effect": "Allow",
"Action": "elasticloadbalancing:ApplySecurityGroupsToLoadBalancer",
"Resource": "*"
}
]
}