2020-02-03, 14:00–14:50, B.1.015
Infrastructure as Code (IaC) is considered the predominant approach to manage Cloud Infrastructure at large scale. Terraform is the market-leading tool implementing this approach, including support for all big Clouds Providers. It is extremely convenient to start new projects from scratch and automate your infrastructure right away. But what if you started without? What if you want to manage big amounts of pre-existing Cloud resources with Terraform?
Terraform's import command is one building block, but using it manually for many resources is very tedious and error-prone. A complete import mechanism is announced by Hashicorp, but it is unclear when it will be implemented. In this talk I will show you how to work smart, not hard: we will automate the import into the statefile, generate the required Terraform code and engineer the correctness of the result with automated tests. All hands-on and with practical examples, that you can reuse to migrate your own infrastructure.