Files
tree-sitter-jhcl/example/real_world_stuff/oracle/oracle%isv-single-tenant-vcn-isolation%examples%full-deployment%management%servers%main.tf

24 lines
745 B
Terraform
Raw Permalink Normal View History

2021-06-23 20:30:30 +02:00
// Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
// Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
terraform {
required_version = ">= 0.12.0"
backend "local" {
path = "../state/management/servers/terraform.tfstate"
}
}
locals {
region_map = {
for r in data.oci_identity_regions.regions.regions :
r.key => r.name
}
home_region = lookup(local.region_map, data.oci_identity_tenancy.tenancy.home_region_key)
availability_domain = lookup(data.oci_identity_availability_domains.ADs.availability_domains[0], "name")
root_compartment_id = var.compartment_ocid
bastion_ip = data.terraform_remote_state.access.outputs.bastion_ip
}