vcn

bpalermo/vcn/oci

Terraform Module HCL OCI

A reusable and extensible Terraform module that provisions a VCN on Oracle Cloud Infrastructure

Install
module "vcn" {
source = "bpalermo/vcn/oci"
version = "1.0.0"
}
plain text: /constructs/tfmod-bpalermo-vcn-oci/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform VCN for Oracle Cloud Infrastructure The [Terraform VCN][repo] for [Oracle Cloud Infrastructure][OCI] provides a reusable [Terraform][terraform] module that provisions a minimal VCN on OCI. It creates the following resources: A VCN with customizable CIDR block An optional internet gateway and a route table An optional NAT gateway An optional service gateway An optional dynamic routing gateway It also controls the Default Security List, with a Lockdown mode that can be enabled or disabled. Custom route rules can be added to the two route tables created by the module. This module is primarily meant to be reusable to create more advanced infrastructure on [OCI][OCI] either manually in the OCI Console or by extending the Terraform code. [Documentation][docs] [Pre-requisites][prerequis

Inputs (15)
NameTypeDescriptionDefault
vcn_namestringuser-friendly name of to use for the vcn to be appended to the label_prefix required
internet_gateway_route_ruleslist(object({ destination (Updatable) List of routing rules to add to Internet Gateway Route Table required
nat_gateway_route_ruleslist(object({ destination (Updatable) List of routing rules to add to NAT Gateway Route Table required
compartment_idstringcompartment id where to create all resources required
vcn_dns_labelstringA DNS label for the VCN, used in conjunction with the VNIC's hostname and subnet required
drg_display_namestring(Updatable) Name of Dynamic Routing Gateway. Does not have to be unique. required
nat_gateway_public_ip_idstringOCID of reserved IP address for NAT gateway. The reserved public IP address need"none"
vcn_cidrstringcidr block of VCN"10.0.0.0/16"
lockdown_default_seclistboolwhether to remove all default security rules from the VCN Default Security Listtrue
tagsmap(any)simple key-value pairs to tag the resources created using freeform tags.{ "module": "oracle-terraform-modules/
create_drgboolwhether to create Dynamic Routing Gateway. If set to true, creates a Dynamic Roufalse
service_gateway_enabledboolwhether to create a service gateway. If set to true, creates a service gateway.false
label_prefixstringa string that will be prepended to all resources"none"
internet_gateway_enabledboolwhether to create the internet gateway in the vcn. If set to true, creates an Infalse
nat_gateway_enabledboolwhether to create a nat gateway in the vcn. If set to true, creates a nat gatewafalse
Outputs (15)
drg_id — id of drg if it is created
drg_all_attributes — all attributes of created drg
internet_gateway_all_attributes — all attributes of created internet gateway
vcn_all_attributes — all attributes of created vcn
internet_gateway_id — id of internet gateway if it is created
service_gateway_id — id of service gateway if it is created
ig_route_id — id of internet gateway route table
nat_route_id — id of VCN NAT gateway route table
drg_attachment_all_attributes — all attributes related to drg attachment
ig_route_all_attributes — all attributes of created ig route table
vcn_id — id of vcn that is created
nat_gateway_id — id of nat gateway if it is created
nat_gateway_all_attributes — all attributes of created nat gateway
nat_route_all_attributes — all attributes of created nat gateway route table
service_gateway_all_attributes — all attributes of created service gateway
Resources (8)
oci_core_default_security_listoci_core_drgoci_core_drg_attachmentoci_core_internet_gatewayoci_core_nat_gatewayoci_core_route_tableoci_core_service_gatewayoci_core_vcn
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud OCI
★ Stars0
Forks0
Total downloads788
Inputs15
Outputs15
Resources8
Examples1
LicenseUPL-1.0
Namespacebpalermo
Updated