A Pulumi package for creating and managing Oracle Cloud Infrastructure resources.
Actively maintained. Last release 4 days ago, commits in 25 of the last 26 weeks. A safe choice.
pip install pulumi-ociOracle Cloud Infrastructure Resource Provider
The Oracle Cloud Infrastructure (OCI) Resource Provider lets you manage OCI resources.
Installing
This package is available for several languages/platforms:
Node.js (JavaScript/TypeScript)
To use with JavaScript or TypeScript in Node.js, install using either npm:
npm install @pulumi/oci
or yarn:
yarn add @pulumi/oci
Python
To use with Python, install using pip:
python3 -m pip install pulumi_oci
To use uv instead:
uv pip install pulumi_oci
Go
To use with Go, use go get to grab the latest version of the library:
go get github.com/pulumi/pulumi-oci/sdk/v5/...
.NET
To use with .NET, install using dotnet add package:
dotnet add package Pulumi.Oci
Configuration
The following configuration options are available for the oci provider:
| Option | Environment variable | Description |
|---|---|---|
oci:auth | The type of auth to use. Options are 'ApiKey', 'SecurityToken', 'InstancePrincipal', 'ResourcePrincipal' and 'OKEWorkloadIdentity'. By default, 'ApiKey' will be used. | |
oci:tenancyOcid | TF_VAR_tenancy_ocid | OCID of your tenancy. |
oci:userOcid | TF_VAR_user_ocid | OCID of the user calling the API. |
oci:privateKey | TF_VAR_private_key | The contents of the private key file. Required if privateKeyPath is not defined and takes precedence if both are defined. |
oci:privateKeyPath | TF_VAR_private_key_path |