forked from oracle-terraform-modules/terraform-oci-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subnets.tf
16 lines (14 loc) · 812 Bytes
/
subnets.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
resource "oci_core_subnet" "operator" {
cidr_block = cidrsubnet(local.vcn_cidr, var.newbits, var.netnum)
compartment_id = var.compartment_id
display_name = var.label_prefix == "none" ? "operator" : "${var.label_prefix}-operator"
dns_label = "operator"
freeform_tags = var.tags
prohibit_public_ip_on_vnic = true
route_table_id = var.nat_route_id
security_list_ids = [oci_core_security_list.operator[0].id]
vcn_id = var.vcn_id
count = var.operator_enabled == true ? 1 : 0
}