Resource Manager service is announcing two new features that make it easier to create and use Terraform configurations on Oracle Cloud:
Terraform template creators who have their templates hosted on GitHub, GitLab, or Object Storage can place a Deploy to Oracle Cloud button on their repositories. You can launch the template in Resource Manager with one click.
You can create a Resource Manager stack using the configuration you specify in the Create Compute Instance wizard available in the Console.
Resource Manager is an Oracle Cloud Infrastructure (OCI) management service that enables infrastructure-as-code. The service provides several user benefits, including collaboration, auditability, reliability, and repeatability. However, Resource Manager expects you to create a stack, a collection of configuration files written in the Terraform language. The complexity of learning the Terraform language is a challenge. To address this challenge, we introduced the following tools in the past:
Resource Discovery to generate Terraform files for existing resources
Prebuilt sample templates
OKIT: A visual designer to create resources and corresponding Terraform configuration files
Today, we are announcing the following two new features.
The Deploy to Oracle Cloud button helps you deploy Terraform templates in Resource Manager. You can create a button for your Terraform templates hosted on GitHub, GitLab, or Object Storage source. Upon clicking this button, you land in the Resource Manager “Create Stack” workflow with the specified template ready to deploy. Here, you can complete the stack creation process and run an apply job to eventually create resources as defined by the template.
This button helps you create Terraform templates for other users. For example, centralized IT departments create templates to have better control over resource provisioning by other groups. Trainers do so to educate their teams. Independent software vendors want to provide best-practice solutions to their customers, and developers want to share their knowledge with the community.
However, creating templates alone is not sufficient. You also want to help your users deploy it. You can utilize this button to meet that objective. To create your own button, follow these instructions. To give you some ideas, view a sample repo example.
Now you can use the Console compute workflow to create a Resource Manager stack. You provide parameter inputs in the Console. Instead of creating the Compute instance, you can now create a Resource Manager stack that corresponds to the resource details defined by the inputs in the Terraform configuration language. You can then use this stack to programmatically create resources in OCI without having to learn Terraform.
This workflow creates the Terraform code for customers, making the onboarding process easier. If you would like to see a similar experience for other resource workflows, contact us using the contact information at the end of this post.
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.