-
Notifications
You must be signed in to change notification settings - Fork 35
/
main.tf
120 lines (100 loc) · 5.21 KB
/
main.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# 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
module "vcn" {
source = "oracle-terraform-modules/vcn/oci"
version = "2.3.0"
# provider parameters
region = var.oci_base_provider.region
# general oci parameters
compartment_id = var.oci_base_general.compartment_id
label_prefix = var.oci_base_general.label_prefix
tags = var.oci_base_vcn.tags
# vcn parameters
create_drg = var.oci_base_vcn.create_drg
drg_display_name = var.oci_base_vcn.drg_display_name
internet_gateway_enabled = var.oci_base_vcn.internet_gateway_enabled
lockdown_default_seclist = var.oci_base_vcn.lockdown_default_seclist
nat_gateway_enabled = var.oci_base_vcn.nat_gateway_enabled
nat_gateway_public_ip_id = var.oci_base_vcn.nat_gateway_public_ip_id
service_gateway_enabled = var.oci_base_vcn.service_gateway_enabled
vcn_cidr = var.oci_base_vcn.vcn_cidr
vcn_dns_label = var.oci_base_vcn.vcn_dns_label
vcn_name = var.oci_base_vcn.vcn_name
# routing rules
internet_gateway_route_rules = var.oci_base_vcn.internet_gateway_route_rules
nat_gateway_route_rules = var.oci_base_vcn.nat_gateway_route_rules
}
module "bastion" {
source = "oracle-terraform-modules/bastion/oci"
version = "2.1.0"
# provider identity parameters
api_fingerprint = var.oci_base_provider.api_fingerprint
api_private_key_path = var.oci_base_provider.api_private_key_path
region = var.oci_base_provider.region
tenancy_id = var.oci_base_provider.tenancy_id
user_id = var.oci_base_provider.user_id
# general oci parameters
compartment_id = var.oci_base_general.compartment_id
label_prefix = var.oci_base_general.label_prefix
# network parameters
availability_domain = var.oci_base_bastion.availability_domain
bastion_access = var.oci_base_bastion.bastion_access
ig_route_id = module.vcn.ig_route_id
netnum = var.oci_base_bastion.netnum
newbits = var.oci_base_bastion.newbits
vcn_id = module.vcn.vcn_id
# bastion parameters
bastion_enabled = var.oci_base_bastion.bastion_enabled
bastion_image_id = var.oci_base_bastion.bastion_image_id
bastion_operating_system_version = var.oci_base_bastion.bastion_operating_system_version
bastion_shape = var.oci_base_bastion.bastion_shape
bastion_state = var.oci_base_bastion.bastion_state
bastion_upgrade = var.oci_base_bastion.bastion_upgrade
ssh_public_key = var.oci_base_bastion.ssh_public_key
ssh_public_key_path = var.oci_base_bastion.ssh_public_key_path
timezone = var.oci_base_bastion.timezone
# notification
notification_enabled = var.oci_base_bastion.notification_enabled
notification_endpoint = var.oci_base_bastion.notification_endpoint
notification_protocol = var.oci_base_bastion.notification_protocol
notification_topic = var.oci_base_bastion.notification_topic
# tags
tags = var.oci_base_bastion.tags
}
module "operator" {
source = "oracle-terraform-modules/operator/oci"
version = "2.2.0"
# provider identity parameters
api_fingerprint = var.oci_base_provider.api_fingerprint
api_private_key_path = var.oci_base_provider.api_private_key_path
region = var.oci_base_provider.region
tenancy_id = var.oci_base_provider.tenancy_id
user_id = var.oci_base_provider.user_id
# general oci parameters
compartment_id = var.oci_base_general.compartment_id
label_prefix = var.oci_base_general.label_prefix
# network parameters
availability_domain = var.oci_base_operator.availability_domain
nat_route_id = module.vcn.nat_route_id
netnum = var.oci_base_operator.netnum
newbits = var.oci_base_operator.newbits
vcn_id = module.vcn.vcn_id
# operator parameters
operator_enabled = var.oci_base_operator.operator_enabled
operator_image_id = var.oci_base_operator.operator_image_id
operator_instance_principal = var.oci_base_operator.enable_instance_principal
operator_shape = var.oci_base_operator.operator_shape
operator_state = var.oci_base_operator.operator_state
operating_system_version = var.oci_base_operator.operating_system_version
operator_upgrade = var.oci_base_operator.operator_upgrade
ssh_public_key = var.oci_base_operator.ssh_public_key
ssh_public_key_path = var.oci_base_operator.ssh_public_key_path
timezone = var.oci_base_operator.timezone
# notification
notification_enabled = var.oci_base_operator.notification_enabled
notification_endpoint = var.oci_base_operator.notification_endpoint
notification_protocol = var.oci_base_operator.notification_protocol
notification_topic = var.oci_base_operator.notification_topic
# tags
tags = var.oci_base_operator.tags
}