1 Answer
- Newest
- Most votes
- Most comments
0
Thanks for the clear description.
As you may already know, there's no specific ALB event when ALB scales up/down. However, when ALB scales, we will see changes in terms of network interfaces. We could therefore monitor the following event pattern (leveraging CloudTrail events) for potential automation:
// monitor all ELB calls for interface changes
{
"source": ["aws.ec2"],
"detail-type": ["AWS API Call via CloudTrail"],
"detail": {
"eventSource": ["ec2.amazonaws.com"],
"eventName": ["CreateNetworkInterface", "DeleteNetworkInterface"],
"userAgent": ["elasticloadbalancing.amazonaws.com"]
}
}
// or monitor all calls from specific ELB for interface changes
{
"source": ["aws.ec2"],
"detail-type": ["AWS API Call via CloudTrail"],
"detail": {
"eventSource": ["ec2.amazonaws.com"],
"eventName": ["CreateNetworkInterface", "DeleteNetworkInterface"],
"requestParameters": {
"description": ["ELB app/alb_name/dbe23be94aa68888"]
}
}
}
answered 4 years ago
Relevant content
asked 2 years ago
asked 5 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
