Thomas Heute
09/30/2025, 7:45 AMcustodian and c7n-org to update tags on ~150 AWS accounts.
Running from my machine (Mac), I noticed that running the command over and over (to go through the 150 accounts), my machine starts to crawl. At some point I can't make any network connection unless I stop the loop and wait a few minutes.
It seems that network connections might be left open, has anyone experienced this issue with custodian ?Thomas Heute
09/30/2025, 11:23 AMStephen Colebrook
09/30/2025, 1:11 PMC7N_ORG_PARALLEL to specify the number of parallel workers in c7n. It defaults to cpu count * 4, but that may result in too many api calls depending on the resource types you’re working with, leading to rate limiting, which leads to retrying and ultimately taking longer.
It also helps to make sure you’re using a recent version of python. I forget which version Apple is currently bundling, but they have a habit of only including REALLY old versions of python. The easiest way I’ve found is to use pyenv (https://github.com/pyenv/pyenv) to install newer versions on a mac.Thomas Heute
09/30/2025, 1:14 PM