The learning curve for new tools might be a handicap for many people. To sort that problem Oracle is providing pre-build stacks to help deploy environments without having to learn Terraform language.
Let’s have a look and see how it works… We will start by log in to the Oracle Cloud Infrastructure Console.
From the Navigation menu, select Resource Manager and then Stacks
Click Create Stack
In the new wizard you will have the option to upload your own Terraform files or use a pre-build configuration. We will select Sample Solution and click in Select Solution.
Currently, there is a small number of solutions in place. We will deploy a sample E-Commerce Application which is based in the MuShop microservices HOL.
Next provide a name for your solution, a description, and ensure you are in the right compartment. Click Next.
Now it’s time to configure the variables for the resources. Basically you will need to provide a name for your Database, select in which Availability Domain you want to deploy it, and provide an SSH Key.
Review that everything is correct and Click Create.
Your new stack is ready to be deployed. Click Terraform Actions and then Apply.
Leave the default values (Automatically Approve) and click Apply.
You can now take a break and grab a coffee. It will take a bit to deploy all the resources in the environment (bear in mind it will initialize provider plugins and then deploy all the required resources: networks, subnets, database instance, compute instances, etc.)
Once the stack is deployed you will have a full Mushop application ready to go. You can download existing terraform scripts and reuse them for other deployments or modify them as per your requirements. I think it would be great if Oracle provides a way to push the configuration to GitHub.