test-oci

A Pulumi package for creating and managing oci cloud resources.

Usage no npm install needed!

<script type="module">
  import testOci from 'https://cdn.skypack.dev/test-oci';
</script>

README

Slack

Oracle Cloud Infrastructure (OCI) provider

The Oracle Cloud Infrastructure (OCI) resource provider for Pulumi lets you use OCI resources in your cloud programs.

To use this package, please install the Pulumi CLI first.

Installing

This package is available in many languages in the standard packaging formats.

Node.js (JavaScript/TypeScript)

To use from JavaScript or TypeScript in Node.js, install using either npm:

$ npm install @pulumi/oci

or yarn:

$ yarn add @pulumi/oci

Python

To use from Python, install using pip:

$ pip install pulumi_oci

Go

To use from Go, use go get to grab the latest version of the library

$ go get github.com/pulumi/pulumi-oci/sdk

.NET

To use from .NET, install using dotnet add package:

$ dotnet add package Pulumi.Oci

Configuration

To authenticate the OCI Provider, you'll need to generate an API signing key in the Oracle Cloud Infrastructure Console.

When you use the Console to add the API signing key pair, a configuration file preview snippet is generated with the following information:

  • user - the OCID of the user for whom the key pair is being added;
  • fingerprint - the fingerprint of the key that was just added;
  • tenancy - your tenancy's OCID;
  • region - the currently selected region in the Console;
  • key_file - the path to your downloaded private key file.

You should copy the snippet and append it to the configuration file, the default configuration file name and location is ~/.oci/config

If your config file already has a DEFAULT profile, you'll need to do one of the following:

  • Replace the existing profile and its contents;
  • Rename the existing profile;
  • Rename this profile to a different name after pasting it into the config file.

You can use another profile from the configuration file with oci:profile.

If needed, the path to the OCI configuration file can be modified using oci:configurationFile. If this is not set and oci:profile is specified, ~/.oci/config will be used.

Any entry from the configuration file can be overwriten using the following configuration variables:

  • oci:tenancy;
  • oci:user;
  • oci:fingerprint;
  • oci:region;
  • oci:private_key_path.

The provider also supports the use of environment variables to specify configuration values. The following environment variables are available:

  • OCI_CLI_PROFILE;
  • OCI_CLI_CONFIG_FILE;
  • OCI_CLI_TENANCY;
  • OCI_CLI_USER;
  • OCI_CLI_FINGERPRINT;
  • OCI_CLI_REGION;
  • OCI_CLI_KEY_FILE.

Reference

For further information, please visit the OCI provider docs or for detailed reference documentation, please visit the API docs.