Prerequisites: Set up the variables below on Terraform Cloud or you can commit any number of *.auto.tfvars files to provide default variable values.
- compartment_ocid
- region
- tenancy_ocid
- user_ocid
- fingerprint
- private_key (terraform key)
- ssh_public_key
- vm_private_key
This .TF will provision:
- 1 VCN
- 1 Subnet
- 1 Internet Gateway + Routing Table
- 1 Security list + 3 Rules
- 2 Linux instances according to the image ID.
Also
- Configures the instance according to the script.
Outputs:
- Instances IP Addresses
🚀