Requirements

Name Version
terraform >= 0.14

Providers

Name Version
oci 4.79.0

Modules

No modules.

Resources

Name Type
oci_core_default_route_table.route_table resource
oci_core_instance.instance resource
oci_core_internet_gateway.internet_gateway resource
oci_core_security_list.security_list resource
oci_core_subnet.subnet resource
oci_core_vcn.vcn resource
oci_identity_availability_domain.ad data source

Inputs

Name Description Type Default Required
availability_domain_number The number of the Availability Domain number 1 no
compartment_ocid The OCID of the compartment. Use OCID from tenancy as fallback string n/a yes
ingress_allowed_tcp List of allowed TCP ingress ports list(number)
[
22,
443,
80
]
no
ingress_allowed_udp List of allowed UDP ingress ports list(number)
[
51820,
20560,
27015,
7777,
8080
]
no
instance_count Number of instances to create number 3 no
instance_image_ocid Image OCID. List available: https://docs.cloud.oracle.com/en-us/iaas/images/image/cc81a889-bc7f-4b70-b8e7-0503812665be/ list(string)
[
"ocid1.image.oc1.sa-saopaulo-1.aaaaaaaawohyyavvqh2xxi44dwsu2ysqamht2yj54hynxv2bdhltdby6i7xq",
"ocid1.image.oc1.sa-saopaulo-1.aaaaaaaa43nhxgl7mm57gssiqc4ajotp6awanjxn2m2cbju7qyic6cm3rtsq",
"ocid1.image.oc1.sa-saopaulo-1.aaaaaaaa43nhxgl7mm57gssiqc4ajotp6awanjxn2m2cbju7qyic6cm3rtsq"
]
no
instance_shape The shape of the instance. The shape determines the number of CPUs and the amount of memory allocated to the instance. list(string)
[
"VM.Standard.A1.Flex",
"VM.Standard.E2.1.Micro",
"VM.Standard.E2.1.Micro"
]
no
instance_shape_config Custom shape configuration.
list(object({
memory_in_gbs = number,
ocpus = number
}))
[
{
"memory_in_gbs": 24,
"ocpus": 4
},
{
"memory_in_gbs": 1,
"ocpus": 1
},
{
"memory_in_gbs": 1,
"ocpus": 1
}
]
no
oracle_api_key_fingerprint Oracle's key fingerprint string n/a yes
oracle_api_private_key_path Path to Oracle's private key string n/a yes
prefix_display_name Prefix for resources display names string "" no
region List available: https://docs.cloud.oracle.com/en-us/iaas/Content/General/Concepts/regions.htm string "sa-saopaulo-1" no
ssh_private_key_path Path to the private key of the ssh key pair string n/a yes
ssh_public_key Public key signature of the ssh key pair string n/a yes
tenancy_ocid The OCID of the tenancy string n/a yes
user_ocid The OCID of the user string n/a yes
vcn_cidr_block IPv4 CIDR block associated with the VCN. string "10.1.0.0/16" no

Outputs

Name Description
instance_display_name Display name of created instances.
instance_id OCID of created instances.
private_ip Private IPs of created instances.
public_ip Public IPs of created instances.