Skip to content

Latest commit

 

History

History

simple-instance

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simple compute instance

This module will deploy a single Oracle compute instance, in a private or in a public subnet.

If you choose to publish this compute instance in a private subnet, you need a NAT instance (refer to nat-instance module). The nat instance can be used also as bation host to reach the private instance, or if you prefer you can deploy a dedicated bastion host (refer to bastion-host module).

Requirements

  • One vcn with a public or private subnet (simple-vcn or private-vcn module)
  • One nat instance if the instance is_private (nat-instance module)

Module variables

Var Required Desc
region yes set the correct OCI region based on your needs
availability_domain yes Set the correct availability domain. See how to find the availability domain
compartment_ocid yes Set the correct compartment ocid. See how to find the compartment ocid
vcn_id yes The VCN OCID
private_subnet_id yes Private subnet OCID
public_subnet_id yes Public subnet OCID
environment yes Current work environment (Example: staging/dev/prod). This value is used for tag all the deployed resources
default_fault_domain no Fault domain where the instance will be deployed. Default: FAULT-DOMAIN-1
is_private no Bool value. If true the instance will be deployed in a private subnet. Default: false
os_image_id no OS image OCID. Default: ocid1.image.oc1.eu-zurich-1.aaaaaaaag2uyozo7266bmg26j5ixvi42jhaujso2pddpsigtib6vfnqy5f6q - Canonical-Ubuntu-20.04-aarch64-2022.01.18-0

Output

The module will show the instane ip: public or private (based on the value of the variable is_private)