Amazon web services – Aws Inventory list of resources using python
import boto3 import csv from io import StringIO import time def search_all_resources(): client = boto3.client('resource-explorer-2') all_resources = [] # Initialize with a dummy NextToken to start the first page next_token = None retries = 0 while True: try: if next_token:…