OKIT enables the user to export to Terraform or Ansible allowing DevOps to integrate into their currently established Infrastructure as Code workflow. One of the more interesting options is OKIT's ability to integrate with OCIs Resource Manager. This integration allows non-DevOps users to build the solutions they have designed and subsequently modify them as required. This merges the power of OKIT design with the strength of Resource Manager.
Now that our model is complete we can export this to Resource Manager using the Menu Option Export -> Resource Manager which will cause the "Export to Resource Manager" Dialog to be displayed.
The export dialog allows you to configure the destination and the type of action to be performed.
Having selected the Create Action from the dialog and specifying the Stack Name as "Simple Loadbalancer" we can see from the images below that OKIT will create a new Resource Manager Stack, in the chosen compartment, and within this an apply job. When the Apply completes all the modelled resources will have been created.
Now that we have successfully created our simple load balancer implementation we can modify the diagram, in this case adding two additional instances, to represent our new requirements. Once we have completed the modifications we can initiate the export to Resource Manager to display the dialog.
At this point we need to change the export action to "Update" which will display all the stacks that exist in the chosen region / compartment. We will then select the existing "Simple Loadbalancer" stack and Update.
We can see from the image below that the update action will not create a new stack but rather add a new job to the existing stack and run it. On completion you can see that our system has been updated to create two new instances that are linked to the existing Load Balancer.
The screenshots in this article are based off of OKIT v0.9.0 released in August of 2020. OKIT remains under active development and is available on GitHub. New features are added with each release and we will be continuing to posts on more advanced OKIT features including Fragments and building Reference Architecture templates.