mirror of
https://github.com/vcscsvcscs/OCI-Kubernetes-cluster-with-traefik.git
synced 2025-08-13 22:39:06 +02:00
Add oci managed terraform + create snet module
This commit is contained in:
32
oci-managed/main.tf
Normal file
32
oci-managed/main.tf
Normal file
@@ -0,0 +1,32 @@
|
||||
|
||||
module "vcn" {
|
||||
source = "oracle-terraform-modules/vcn/oci"
|
||||
version = "3.6.0"
|
||||
|
||||
compartment_id = var.compartment_ocid
|
||||
region = var.region
|
||||
|
||||
internet_gateway_route_rules = null
|
||||
local_peering_gateways = null
|
||||
nat_gateway_route_rules = null
|
||||
|
||||
vcn_name = "${var.cluster_name}-${var.environment}-vcn"
|
||||
vcn_dns_label = "${var.cluster_name}${var.environment}vcn"
|
||||
vcn_cidrs = ["10.0.0.0/16"]
|
||||
|
||||
create_internet_gateway = true
|
||||
create_nat_gateway = true
|
||||
create_service_gateway = true
|
||||
}
|
||||
|
||||
module "snet" {
|
||||
source = "./snet"
|
||||
|
||||
compartment_ocid = var.compartment_ocid
|
||||
cluster_name = var.cluster_name
|
||||
environment = var.environment
|
||||
|
||||
vcn_id = module.vcn.vcn_id
|
||||
vcn_nat_route_id = module.vcn.vcn_nat_route_table_id
|
||||
vcn_ig_route_id = module.vcn.vcn_ig_route_table_id
|
||||
}
|
Reference in New Issue
Block a user