generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprovider.tf
48 lines (40 loc) · 1.03 KB
/
provider.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
terraform {
required_providers {
oci = {
source = "oracle/oci"
}
}
}
variable "user_ocid" {
default = ""
}
variable "fingerprint" {
default = ""
}
variable "private_key_path" {
default = ""
}
provider "oci" {
region = var.region
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
}
provider "oci" {
alias = "home"
region = lookup(local.region_map_key_fname, data.oci_identity_tenancy.tenancy.home_region_key)
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
}
## Alternative way to setup the OCI provider for Terraform
# provider "oci" {
# region = var.region
# config_file_profile = "DEFAULT"
# }
# provider "oci" {
# region = lookup(local.region_map_key_fname, data.oci_identity_tenancy.tenancy.home_region_key)
# alias = "home"
# config_file_profile = "DEFAULT"
# }