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
This template assumes that coderd is run in an environment that is authenticated with Oracle Cloud Infrastructure. The recommended authentication methods are:
18
18
19
19
1.**Instance Principal** (Recommended for production): Run Coder on an OCI instance with proper IAM policies
20
-
2.**API Key**: Set environment variables`OCI_TENANCY_OCID`, `OCI_USER_OCID`, `OCI_FINGERPRINT`, and `OCI_PRIVATE_KEY_PATH`. If running coderd/provisioner in a container, ensure the private key file path is mounted into the container so it is accessible at the specified path.
21
-
3.**Configuration File**: Use `~/.oci/config`file (mount into the container if coderd runs in a container)
20
+
2.**API Key**: Set env vars`OCI_TENANCY_OCID`, `OCI_USER_OCID`, `OCI_FINGERPRINT`, `OCI_PRIVATE_KEY_PATH`. If coderd/provisioner runs in a container, mount the private key path into the container.
21
+
3.**Configuration File**: Use `~/.oci/config` (mount into the container if coderd runs in a container)
22
22
23
23
For detailed authentication setup, see the [OCI Terraform provider documentation](https://registry.terraform.io/providers/oracle/oci/latest/docs#authentication).
24
24
@@ -92,7 +92,7 @@ The template uses Ubuntu 22.04 LTS as the base image and includes:
92
92
93
93
1.**Set up authentication** using one of the methods above
94
94
2.**Create a compartment** in your OCI tenancy
95
-
3.**Deploy the template** (if you omit `compartment_ocid`, the tenancy/root compartment will be used)
95
+
3.**Deploy the template** (if you omit `compartment_ocid`, set `TF_VAR_tenancy_ocid` to your tenancy OCID so the root compartment is used)
96
96
97
97
### Template Variables
98
98
@@ -139,6 +139,8 @@ The template supports all major OCI regions:
139
139
### Common Issues
140
140
141
141
1.**Authentication Errors**: Ensure proper OCI authentication is configured
142
+
- If not using Instance Principals, set `TF_VAR_tenancy_ocid` (or `compartment_ocid`) and OCI env vars
143
+
- For containers, mount `OCI_PRIVATE_KEY_PATH` and/or `~/.oci/config` into the provisioner container
142
144
2.**Permission Errors**: Verify IAM policies are correctly set
143
145
3.**Network Issues**: Check VCN and security list configuration
144
146
4.**Volume Attachment**: Ensure the home volume is properly attached
error_message="Provide either 'compartment_ocid' or 'tenancy_ocid'. For containerized coderd, set TF_VAR_tenancy_ocid or mount ~/.oci/config and set OCI_* envs."
0 commit comments