forked from oracle-terraform-modules/terraform-oci-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
locals.tf
49 lines (44 loc) · 2.21 KB
/
locals.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
# Copyright 2017, 2019, Oracle Corporation and/or affiliates. All rights reserved.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl
locals {
oci_base_vcn = {
compartment_id = var.oci_base_identity.compartment_id
create_nat_gateway = var.oci_base_vcn.create_nat_gateway
create_service_gateway = var.oci_base_vcn.create_service_gateway
label_prefix = var.oci_base_general.label_prefix
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
}
oci_bastion_general = {
label_prefix = var.oci_base_general.label_prefix
home_region = lookup(data.oci_identity_regions.home_region.regions[0], "name")
region = var.oci_base_general.region
}
oci_bastion_infra = {
ad_names = data.template_file.ad_names.*.rendered
availability_domains = var.oci_base_bastion.availability_domains
ig_route_id = module.vcn.ig_route_id
netnum = var.oci_base_bastion.netnum
newbits = var.oci_base_bastion.newbits
vcn_cidr = var.oci_base_vcn.vcn_cidr
vcn_id = module.vcn.vcn_id
}
oci_bastion = {
bastion_access = var.oci_base_bastion.bastion_access
bastion_image_id = var.oci_base_bastion.bastion_image_id
bastion_shape = var.oci_base_bastion.bastion_shape
bastion_upgrade = var.oci_base_bastion.bastion_upgrade
create_bastion = var.oci_base_bastion.create_bastion
enable_instance_principal = var.oci_base_bastion.enable_instance_principal
ssh_public_key_path = var.oci_base_bastion.ssh_public_key_path
timezone = var.oci_base_bastion.timezone
use_autonomous = var.oci_base_bastion.use_autonomous
}
oci_bastion_notification = {
enable_notification = var.oci_base_bastion.enable_notification
notification_endpoint = var.oci_base_bastion.notification_endpoint
notification_protocol = var.oci_base_bastion.notification_protocol
notification_topic = var.oci_base_bastion.notification_topic
}
}