The evolution of managing TFE workspaces- managing it all in code and at scale
summary
A cloud ops team builds an automated pipeline that reads per-workspace config files and uses a Python CLI running on CircleCI to call the TFE REST API and create hundreds of TFE workspaces; it works but generates excessive API traffic, requires constant Python maintenance, and predates Terraform 0.12 features. The team then rewrites workspace definitions in Terraform using the tfe provider, shards workspaces into category workspaces with one manually created meta workspace, and cuts API calls and custom code while using run triggers to propagate changes.
AI-written summary · about
chapters (9)
- 0:00Introduction and background
- 2:06What is TFE workspace
- 3:30Challenges managing workspaces at scale
- 5:39Initial workspace management solution
- 6:21Benefits and issues of first solution
- 8:28Improvements and new features
- 9:11Next-stage workspace management
- 11:18Lessons learned and automation
- 12:43Conclusion and Q&A
