Skip to content

dbtutor/terraform-oci-instance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Sample for an Oracle Cloud Infrastructure Instance

  • This example is meant to be used with a trial tenancy or as a method to familiarize yourself with Terraform and how it works.

  • Since Terraform is incredibly flexible, the methods presented in this example are not meant to be considered the "best practices".

  • The example is not intended to be used for a production environment without review.

Important note

-- This module assumes that there is supporting infrastructure in place to properly provision an instance.

Prerequisites:

Virtual Cloud Network
Subnet

Variables

The variables used for the module are populated using a shell script. The purpose behind this is to allow freedom to define the variables outside of the module. This is done to allow modules greater flexibility without the need to define each variable on runtime or within a file.

  • A "sampleENV.sh" has been provided and should be populated prior to running "terraform init".

Flow

source ./sampleENV.sh
terraform init
terraform plan
terraform apply

About

Terraform Instance Module for Oracle Cloud Infrastructure

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 91.5%
  • Shell 8.5%