terraform: Adding a semaphore implementation
terraform: Switch to using semaphore