Skip to content

Instantly share code, notes, and snippets.

@bashtoni
Created May 18, 2021 01:31
Show Gist options
  • Save bashtoni/d429a15f9c1c5bb5219f5f67fd5797b5 to your computer and use it in GitHub Desktop.
Save bashtoni/d429a15f9c1c5bb5219f5f67fd5797b5 to your computer and use it in GitHub Desktop.
Request a quota increase across all regions
#!/bin/bash
SERVICE_CODE=cloudformation
QUOTA_CODE=L-0485CB21 # Number of stacks - find via `aws service-quotas list-service-quotas` or AWS Console
DESIRED_VALUE=500
for region in $(aws ec2 describe-regions --query Regions[][RegionName] --output text); do
aws service-quotas --region $region request-service-quota-increase \
--service-code $SERVICE_CODE \
--quota-code $QUOTA_CODE \
--desired-value $DESIRED_VALUE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment