We’re excited to announce the Resource Discovery feature for Resource Manager. You can now use Resource Manager to discover deployed resources in your compartment and export them to Terraform configuration and state files.
Last year, we introduced this functionality for Terraform Provider. Now, by using it in Resource Manager, you can even more easily move from a Console- or SDK-managed infrastructure to an infrastructure managed by the Resource Manager.
The new feature provides the following benefits:
Move from manually managed infrastructure to infrastructure managed by Resource Manager: Users often use the Console to build out their initial infrastructure. As the infrastructure grows in scale and complexity, it becomes evident that it would be better to manage it programmatically. Using this new feature, you can generate baseline Terraform configuration and state files, and manage the infrastructure by using the Resource Manager.
Duplicate or rebuild existing infrastructure: By creating Terraform configuration files, you can re-create existing infrastructure architecture in a new tenancy or region.
Get started with Terraform: If you’re new to Terraform, you can refer to the generated configuration to learn about Terraform’s HCL syntax and how to represent Oracle Cloud Infrastructure resources in HCL.
In the Oracle Cloud Infrastructure Console main menu, select Resource Manager and then Stacks.
Click Create Stack.
Select Existing Compartment and provide the necessary information.
Complete the workflow to create the stack and the Terraform configuration and state files required to manage the infrastructure. You can download the configuration file, make changes to it, and upload a new version.
For detailed information about the feature, see the following topics:
If you’re new to the Resource Manager, see the following resources to get started:
If you have any feedback or questions about Resource Manager, send us an email.
Gaurav is the product manager for OCI Developer Experience team that has built tools such as Terraform Provider, Oracle Resource Manager, Ansible Modules, SDK and CLI.
Next Post