-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproviders.tf
37 lines (35 loc) · 1.12 KB
/
providers.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
locals {
config = var.zone
# OCI
tenancy_ocid = local.config.tenancy_ocid
user_ocid = local.config.user_ocid
api_key_fingerprint = local.config.api_key_fingerprint
private_key_path = local.config.private_key_path
region = local.config.region
# Networking
compartment_id = local.config.compartment_id
availability_domain = local.config.availability_domain
vcn_cidr_block = local.config.vcn_cidr_block
subnet_cidr_block = local.config.subnet_cidr_block
# Instance
instance_display_name = local.config.instance_display_name
source_id_arm = local.config.source_id_arm
source_id_x86 = local.config.source_id_x86
default_password = local.config.default_password
public_key_path = local.config.public_key_path
}
terraform {
required_providers {
oci = {
source = "oracle/oci"
version = "5.4.0"
}
}
}
provider "oci" {
tenancy_ocid = local.tenancy_ocid
user_ocid = local.user_ocid
fingerprint = local.api_key_fingerprint
private_key_path = local.private_key_path
region = local.region
}