'How do I speed up the running of terraform deployments using threading?

When creating terraform deployments, I have to wait until the command completes before running the next command.

If I have multiple deployments in parallel - (tf init,apply) commands on different environments running on the same terminal, is there a way to use threading in my python scripts to avoid waiting for deployments to finish before I can run my next deployment?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source