How to use Terraform and OCI – lesson 7a

A few days back I have written a post about a new feature in OCI related to the DBSystem. Now you can change the shape of your VM where your database is deployed. This level of elasticity is crucial. But what to do in case of a Disaster Recovery scenario. What to do when one AD is not working properly. In that case, you can deploy DataGuard technology. In the on-prem era it was somehow complicated. I do remember well how much time does it has taken to the setup primary-standby database configuration. Now in OCI, it is a matter of few clicks in the Cloud Console or few lines of code in Terraform (check updated repo content in GitHub for lesson 7a).  In the video below you will see how to use this code in practice. Additionally, I will use the network security groups (NSG) approach instead of security lists (SL). Hope this dish will be very tasty 🙂

Bon Appetit,

Martin, The Cook.

 

Subscribe to get access

For now video is blocked, but you can watch it immediately when you subscribe!

Changing the shape of a virtual machine DB System in OCI with Terraform

True public cloud means the elasticity of the cloud resources. The newest feature related to OCI DBSystem enhanced a few days back means exactly this, true database resource elasticity. I can imagine that in many cases your current DBSystem shape is too small or too large for the workload which is executed. In that case, it would be great to have some simple way to change CPU power by alternative VM shapes. That is why recently I was extremely excited about the dynamic option for DBSystem in case of virtual machine shape change.  You know that for sure, I am a huge fan of automation, Infrastructure as Code approach and Terraform runtime. So I have checked immediately if we can find the corresponding change in the Terraform OCI Provider code. Guess what? Version 3.65.0 supports this new OCI feature. Below a short video shows how it was easy to use this new feature in brand new Terraform OCI Provider.

Bon Appetit,

Martin, The Cook.