Skip to content

Instantly share code, notes, and snippets.

@kntjspr
Last active February 15, 2026 20:28
Show Gist options
  • Select an option

  • Save kntjspr/f6c28ae828730b4d850d94e012ebeb0b to your computer and use it in GitHub Desktop.

Select an option

Save kntjspr/f6c28ae828730b4d850d94e012ebeb0b to your computer and use it in GitHub Desktop.
aws autoscaling

tail -f /var/log/user-data.log

sudo cat /var/lib/cloud/instance/user-data.txt

find asg by tag

aws autoscaling describe-auto-scaling-groups
--filters Name=tag:Environment,Values=Production
--query 'AutoScalingGroups[].AutoScalingGroupName'
--output text

view asg status

aws autoscaling describe-auto-scaling-groups --auto-scaling-group-names

check launch template

aws ec2 describe-launch-templates \
--query 'LaunchTemplates[*].[LaunchTemplateName, LatestVersionNumber, LaunchTemplateId]' \
--output table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment