forked from oracle-terraform-modules/terraform-oci-vcn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vcn.tf
15 lines (13 loc) · 826 Bytes
/
vcn.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Copyright (c) 2019, 2021, Oracle Corporation and/or affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
resource "oci_core_vcn" "vcn" {
# We still allow module users to declare a cidr using `vcn_cidr` instead of the now recommended `vcn_cidrs`, but internally we map both to `cidr_blocks`
# The module always use the new list of string structure and let the customer update his module definition block at his own pace.
cidr_blocks = var.vcn_cidrs[*]
compartment_id = var.compartment_id
display_name = var.label_prefix == "none" ? var.vcn_name : "${var.label_prefix}-${var.vcn_name}"
dns_label = var.vcn_dns_label
is_ipv6enabled = var.enable_ipv6
freeform_tags = var.freeform_tags
defined_tags = var.defined_tags
}