Terraform Options

Provider

ParameterDescriptionTypeDefault
regionRegion where to provision the vcn. List of regions. Required.string

General OCI

ParameterDescriptionTypeDefault
compartment_idCompartment id where the VCN Cluster will be provisioned. Required.string
label_prefixa string to be prepended to the name of resources. Required.stringnone
freeform_tagssimple key-value pairs to tag the resources created specified in the form of a mapmap(any)freeform_tags = { environment = "dev" }
defined_tagspredefined and scoped to a namespace to tag the resources created using defined tags.map(string)null

VCN

ParameterDescriptionTypeDefault
attached_drg_idDRG OCID to be attached to the VCN.string
create_internet_gatewayWhether to create an Internet Gateway.boolfalse
create_nat_gatewayWhether to create an NAT gateway.boolfalse
create_service_gatewayWhether to create a service gateway to use Oracle Services.boolfalse
enable_ipv6(Updatable) Whether IPv6 is enabled for the VCN. If enabled, Oracle will assign the VCN a IPv6 /56 CIDR block.boolfalse
internet_gateway_display_name(Updatable) Name of Internet Gateway. Does not have to be unique.stringinternet-gateway
internet_gateway_route_rules(Updatable) List of routing rules to add to Internet Gateway Route Table.list(map(string))null
local_peering_gatewaysMap of Local Peering Gateways to attach to the VCNmap(any)null
lockdown_default_seclistWhether to remove all default security rules from the VCN Default Security Listbooltrue
nat_gateway_display_name(Updatable) Name of NAT Gateway. It does not have to be unique.stringnat-gateway
nat_gateway_public_ip_idOCID of reserved IP address for NAT gateway. If default value "none" is used, then a public IP address is selected from Oracle’s public IP pool.stringnone
nat_gateway_route_rules(Updatable) List of routing rules to add to NAT Gateway Route Tablelist(map(string))null
service_gateway_display_name(Updatable) Name of Service Gateway. Does not have to be unique.stringservice-gateway
vcn_cidrs(Updatable) The list of IPv4 CIDR blocks the VCN will use. The CIDR block specified for the VCN must not overlap with the CIDR block of another network.string["10.0.0.0/16"]
vcn_dns_label(Optional)A DNS label for the VCN, used in conjunction with the VNIC’s hostname and subnet’s DNS label to form a fully qualified domain name (FQDN) for each VNIC within this subnet. DNS resolution for hostnames in the VCN is disabled if null.stringvcnmodule
vcn_name(Optional)(Updatable) The name of the VCN that will be appended to the label_prefix.stringvcn

Subnets

ParameterDescriptionTypeDefault
subnetsSubnets to be created in the VCNany{}