Learning to generate IaC from an existing setup
Terraform Resource Discovery has been created to help you to discover deployed resources within a compartment and then export all of them to Terraform configuration and state files.
The goal of this feature is to generate Terraform configurations for an OCI customer's compartment. The idea is that a customer infrastructure that has been created in one compartment (mainly via the console) can be replicated in other compartments and/or tenancies.
The generated resource configurations should be able to duplicate the user infrastructure across compartments, tenancies, and regions.
This will solve the pain points of customers when they start creating resources using a console but, at a later stage, think of moving to code-based infrastructure deployment, and will help them to significantly reduce the learning curve of writing HCL from scratch.
To discover resources using ORM, you need to go through the Create Stack workflow...