top of page
  • Writer's pictureNikhil Verma

OCI Terraform Multiple VM deployment

Continuing from my previous post , in this blog i am going to deploy multiple Oracle Linux 8 VM's using Terraform.

Here i have created two .tf files one for Network deployment and second one for multiple VM deployment.

Network deployment includes VCN , Public & Private subnet creation , security lists , Internet Gateway and VPN gateway.

VM deployment includes VM details , for each loop to iterate from VM name set , subnet ID and attach Public IP Network adaptor to VM's.

Once both .tf files ready , we need to initialize terraform :

After initialization we need to plan and see what changes it will perform :

After plan i have validated right resources will be created , lets apply it.

you will in console all 4 VM's deployed along with VCN.

50 views0 comments


bottom of page