Skip to content

Instantly share code, notes, and snippets.

View andreaswittig's full-sized avatar

Andreas Wittig andreaswittig

View GitHub Profile
@andreaswittig
andreaswittig / put-scaling-policy.sh
Created December 13, 2022 10:46
Auto Scaling: Target Tracking with Metric Math
aws autoscaling put-scaling-policy \
--auto-scaling-group-name ASG_NAME \
--policy-name target-tracking \
--policy-type TargetTrackingScaling \
--target-tracking-configuration file://target-tracking-configuration.json \
--estimated-instance-warmup 300
---
Resources:
Api:
Type: 'AWS::ApiGatewayV2::Api'
Properties:
Name: !Ref 'AWS::StackName'
ProtocolType: WEBSOCKET
RouteSelectionExpression: '\$default'
DefaultRoute:
Type: 'AWS::ApiGatewayV2::Route'