Skip to content

Terraform Module for creating Oracle Cloud Infrastructure Compute Instance resource in Compute service

License

Notifications You must be signed in to change notification settings

avaloqcloud/terraform-oci-compute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deploy to Oracle Cloud

Terraform Compute Instance

The code provides a reusuable Terraform module that provisions a compute instance on Oracle Cloud Infrastructure.

Table of contents

Requirements

This modules does not create network resources like VCN, subnets, etc as it uses the existing network resources. Please use acf_res_net module for creating new network resources in OCI.

Usage

module "terraform-oci-compute" {
    source = "github.com/avaloqcloud/terraform-oci-compute"
}

File provider.tf content example:

terraform {
  required_version = "~> 1.2"

  required_providers {
    github = {
      source  = "integrations/github"
      version = "~> 5.39"
    }
    oci = {
      source  = "oracle/oci"
      version = "5.18.0"
    }
  }
}

Providers

Name Version
oci n/a

Resources

Name Type
oci_core_instance.compute_instance resource

Inputs

Name Description Type Default Required
availabilitydomain Availability Domain string n/a yes
boot_volume_size_in_gbs Compartment OCID string "500" yes
cloud_init_script Cloud init script string n/a yes
compartment_ocid Compartment OCID string n/a yes
instance_image Image ID string n/a yes
instance_shape Image Shape string n/a yes
memory Memory size string n/a yes
ocpus OCPU Size string n/a yes
ssh_public_key SSH public key string n/a yes
subnet_id Subnet ID string n/a yes
vm_name VM Name string n/a yes

About

Terraform Module for creating Oracle Cloud Infrastructure Compute Instance resource in Compute service

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages