Home icon
Use AWS Lambda to adjust scaling steps and thresholds for Amazon AppStream 2.0

Blog



This article explains how to use AWS Lambda and EventBridge to dynamically adjust Amazon AppStream 2.0 auto-scaling policies based on time of day, optimizing costs by matching scaling steps to usage patterns.

  • Create IAM policy and role granting Lambda permissions for AppStream scaling operations
  • Build Lambda function that modifies step scaling policies and CloudWatch alarm thresholds
  • Configure EventBridge rules to trigger Lambda at specific times (e.g., 9 AM and 5 PM UTC)
  • Adjust scaling step sizes and thresholds via JSON event parameters passed to Lambda
  • Scale out aggressively during peak hours, conservatively during off-peak periods
  • Reduces unnecessary resource launches and associated costs

This solution enables cost-effective AppStream 2.0 fleet management by automating scaling policy adjustments to match daily usage patterns.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.