I think I have finally cracked the parallel processing and role assumption nut. ...
Teri Radichel @teriradichel@infosec.exchange
I think I have finally cracked the parallel processing and role assumption nut. Completely made it through all resources with correct role assumptions for all org resources. I think I can actually deploy accounts in parallel now but haven’t tried.
The models just can’t figure out decent role assumption and profile code. Some things they mess up seem simple. There was a bug with incorrect profile lookup causing the program to reassume two roles and recreate every profile. Fixed that and it flew through all the resources, though there are bugs so didn’t property deploy or log everything. But it proved the logic works to assume the correct roles and use the correct CLI profiles as it iterates through all the resources in my org configuration.
Had a tricky issue with stale diagram process pid. Models really struggled with that issue but finally fixed.
Figured out the error logging was double encoding (why?) while diagram was deciding once.
Now that I can see all the error messages I fixed something that should not have been logged as an error manually and drafted a plan for fixing error and success logging, and writing more useful error messages. Because the messages the model write are mostly vague or completely useless.
The only concern I have is making sure I have a unique var for each resource that doesn’t get mixed up or overwritten during processing.
Beyond that the rest feels more straightforward but we shall see.
https://github.com/2ndSightLab/ai-tracker/blob/main/fixed.md