Skip to content

Commit 2236f1c

Browse files
committed
variables updated to hold all variables
Signed-off-by: junior <junior@users.noreply.github.com>
1 parent dc9de62 commit 2236f1c

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

variables.tf

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
# OCI Provider
1+
# Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3+
#
4+
5+
################################################################################
6+
# OCI Provider Variables
7+
################################################################################
28
variable "tenancy_ocid" {}
39
variable "compartment_ocid" {}
410
variable "region" {}
@@ -12,9 +18,9 @@ variable "private_key_path" {
1218
default = ""
1319
}
1420

15-
16-
# App defaults
17-
21+
################################################################################
22+
# App Name to identify deployment. Used for naming resources.
23+
################################################################################
1824
variable "app_name" {
1925
default = "K8s App"
2026
description = "Application name. Will be used as prefix to identify resources, such as OKE, VCN, ATP, and others"
@@ -27,3 +33,31 @@ variable "tag_values" {
2733
"definedTags" = {} }
2834
description = "Use Tagging to add metadata to resources. All resources created by this stack will be tagged with the selected tag values."
2935
}
36+
37+
################################################################################
38+
# OCI Network - VCN Variables
39+
################################################################################
40+
variable "create_new_vcn" {
41+
default = true
42+
description = "Creates a new Virtual Cloud Network (VCN). If false, the VCN must be provided in the variable 'existent_vcn_ocid'."
43+
}
44+
variable "existent_vcn_ocid" {
45+
default = ""
46+
description = "Using existent Virtual Cloud Network (VCN) OCID."
47+
}
48+
variable "existent_vcn_compartment_ocid" {
49+
default = ""
50+
description = "Compartment OCID for existent Virtual Cloud Network (VCN)."
51+
}
52+
variable "vcn_cidr_blocks" {
53+
default = "10.20.0.0/16"
54+
description = "IPv4 CIDR Blocks for the Virtual Cloud Network (VCN). If use more than one block, separate them with comma. e.g.: 10.20.0.0/16,10.80.0.0/16. If you plan to peer this VCN with another VCN, the VCNs must not have overlapping CIDRs."
55+
}
56+
variable "is_ipv6enabled" {
57+
default = false
58+
description = "Whether IPv6 is enabled for the Virtual Cloud Network (VCN)."
59+
}
60+
variable "ipv6private_cidr_blocks" {
61+
default = []
62+
description = "The list of one or more ULA or Private IPv6 CIDR blocks for the Virtual Cloud Network (VCN)."
63+
}

0 commit comments

Comments
 (0)