generated from oracle-quickstart/oci-quickstart-template
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathprovider.tf
37 lines (32 loc) · 995 Bytes
/
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
# ------ Initialize Terraform Providers
terraform {
required_version = ">= 0.12.0"
}
# ------ Assign OCI Provider
provider "oci" {
version = ">= 3.0.0"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}
# ------ Assign Explicit Home Region OCI Provider
provider "oci" {
alias = "home_region"
version = ">= 3.0.0"
region = lookup(data.oci_identity_regions.home-region.regions[0], "name")
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
}
# Variables required by the OCI Provider only when running Terraform CLI with standard user based Authentication
variable "user_ocid" {
}
# ------ Fingerprint Variable Placeholder
variable "fingerprint" {
}
# ------ Private Key Path Variable Placeholder
variable "private_key_path" {
}