OCI -- Compute Instance Creation : VCN :Subnet -- Multiple Instances - Practice
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ You can use the same code that you have created and create multiple instances or resources using resourcegroup. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ I have written a code under the folder testing_self it has a main.tf , variables file etc. Now I am creating another folder by anyname (I am creating the folder as Monto ) -- created a file under the folder as main.tf And I am just calling the code three times using a module module "instance1" { source = "../testing_self" } module "instance2" { source = "../testing_self" } module "instance3" { source = "../testing_self" } Now terraform init > terraform validate > terraform plan > terraform apply You will have thress resources created. === Multiple Instance using Count COUNT variable MULTIPLE INSTANCES display_name = " ...