You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Writing Terraform configurations for OCI.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,27 @@ provider "oci" {
43
43
}
44
44
```
45
45
46
-
Use the region parameter in your provider definition to specify which region
46
+
Use the 'region' attribute in your provider definition to specify which region
47
47
your resources will be created in. See the [ad_multi_region](https://github.com/oracle/terraform-provider-oci/tree/master/docs/examples/iam/ad_multi_region/ad_multi_region.tf)
48
48
or [vcn_multi_region](https://github.com/oracle/terraform-provider-oci/tree/master/docs/examples/networking/vcn_multi_region)
49
49
examples for details on how to target multiple regions from one plan.
50
50
51
+
### Enabling Instance Principal Authorization
52
+
To enable instance principal authorization, you can set 'auth' attribute to "InstancePrincipal"
53
+
in the provider definition as follows ('tenancy_ocid', 'user_ocid', 'fingerprint'
54
+
and 'private_key_path' are not necessary):
55
+
```
56
+
variable "region" {}
57
+
58
+
provider "oci" {
59
+
auth = "InstancePrincipal"
60
+
region = "${var.region}"
61
+
}
62
+
```
63
+
64
+
See [Calling Services from an instance](https://docs.us-phoenix-1.oraclecloud.com/Content/Identity/Tasks/callingservicesfrominstances.htm)
65
+
for setting up and using instances as principals.
66
+
51
67
## OCI resource and data source details
52
68
A list of all supported OCI resources and data sources can be found in the [Table of Contents](https://github.com/oracle/terraform-provider-oci/blob/master/docs/Table%20of%20Contents.md).
0 commit comments