top of page
  • Twitter Social Icon
  • LinkedIn Social Icon
  • Facebook Social Icon

OCI Terraform Multiple VM deployment

  • Writer: Nikhil Verma
    Nikhil Verma
  • Apr 5, 2023
  • 1 min read

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.


ree


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.


ree

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


ree

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


ree

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


ree

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


ree

ree

Comments


  • Grey Twitter Icon
  • Grey LinkedIn Icon
  • Grey Facebook Icon
bottom of page