generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbastion_variables.tf
50 lines (43 loc) · 1.59 KB
/
bastion_variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v1.0 as shown at https://oss.oracle.com/licenses/upl.
variable "is_bastion_instance_required" {
type = bool
description = "Set to true to use a bastion, either new or existing. If existing_bastion_instance_id is blank, a new bastion will be created"
default = false
}
variable "existing_bastion_instance_id" {
type = string
description = "The OCID of a compute instance that will work as bastion"
default = ""
}
# TODO: remove this when UI uses control with flex shape
variable "bastion_instance_shape" {
type = string
description = "Shape of bastion VM instances"
default = "VM.Standard.E4.Flex"
}
# TODO: uncomment this when UI uses control with flex shape
#variable "bastion_instance_shape" {
# type = map(string)
# description = "Shape of bastion VM instances"
# default = {
# "instanceShape" = "VM.Standard.E4.Flex",
# "ocpus" = "1",
# "memory" = "16"
# }
#}
variable "bastion_ssh_private_key" {
type = string
description = "The path to the file that contains the private ssh key for an existing bastion instance"
default = ""
}
variable "is_bastion_with_reserved_public_ip" {
type = bool
description = "Creates reserved public ip for bastion instance. Applicable only for new bastion, not for existing"
default = false
}
variable "existing_bastion_nsg_id" {
type = string
description = "The OCID of the pre-created NSG that should be attached to the bastion instance"
default = ""
}