Skip to content

Instantly share code, notes, and snippets.

View jpdom's full-sized avatar

João Domingues jpdom

  • Lisbon, Portugal
  • 21:38 (UTC +01:00)
View GitHub Profile
@jpdom
jpdom / main.py
Created March 26, 2024 11:04
[AWS] Delete all ApiGateway APIs in all regions
import subprocess
import json
# List all enabled regions
nextPageToken = None
regions = []
while nextPageToken != '':
if nextPageToken is None:
regions_raw = subprocess.check_output(['aws', 'account', 'list-regions'])
else: