Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: CC-BY-SA-4.0
This lab will cover scaling and security of ECS Fargate deployment. During initial deployment with CDK we have created a Target Tracking auto scaling policy. List and review CloudWatch alarms which trigger scaling events.
aws cloudwatch describe-alarms
Based on initial configuration events will be triggered based on following conditions :
To initiate scaling event we need to generate client traffic with following command
ab -n 1000000 -c 10 http://`aws cloudformation describe-stacks --stack-name FargateWorkshopOps-frontend --query "Stacks.Outputs.OutputValue" --output text`/
Open CloudWatch console and observe following dashboards :
After 3 minutes you should see new tasks being instantiated to account for increased traffic.