{"id":28066,"library":"pulumi-oci","title":"Pulumi OCI Provider","description":"A Pulumi package for creating and managing Oracle Cloud Infrastructure (OCI) resources. Version 4.10.0 is the latest, released on an irregular cadence aligned with the upstream Terraform provider bridge updates.","status":"active","version":"4.10.0","language":"python","source_language":"en","source_url":"https://github.com/pulumi/pulumi-oci","tags":["pulumi","oci","oracle cloud","infrastructure as code"],"install":[{"cmd":"pip install pulumi-oci","lang":"bash","label":"Install via pip"}],"dependencies":[{"reason":"Core Pulumi SDK is required for all Pulumi programs.","package":"pulumi","optional":false}],"imports":[{"note":"The package name is pulumi_oci, not oci (which is the Oracle OCI SDK).","wrong":"import oci","symbol":"oci","correct":"import pulumi_oci as oci"},{"note":"Wrong top-level package leads to ModuleNotFoundError.","wrong":"from oci import Identity","symbol":"Identity","correct":"from pulumi_oci import Identity"}],"quickstart":{"code":"import pulumi\nimport pulumi_oci as oci\n\nconfig = pulumi.Config()\nuser_ocid = config.require('userOcid')\nfingerprint = config.require('fingerprint')\nprivate_key = config.require_secret('privateKey')\ntenancy_ocid = config.require('tenancyOcid')\nregion = config.require('region')\n\nprovider = oci.Provider('oci-provider',\n    user_ocid=user_ocid,\n    fingerprint=fingerprint,\n    private_key=private_key,\n    tenancy_ocid=tenancy_ocid,\n    region=region\n)\n\nvcn = oci.core.Vcn('my-vcn',\n    cidr_blocks=['10.0.0.0/16'],\n    compartment_id=config.require('compartmentOcid'),\n    opts=pulumi.ResourceOptions(provider=provider)\n)\n\npulumi.export('vcn_id', vcn.id)","lang":"python","description":"Creates a VCN in Oracle Cloud Infrastructure using the OCI provider. Replace config values with your OCI credentials."},"warnings":[{"fix":"Always use 'pulumi_oci' as the import name.","message":"Import using 'import pulumi_oci as oci' or 'from pulumi_oci import ...'. The plain 'oci' package is Oracle's official SDK, not the Pulumi provider.","severity":"gotcha","affected_versions":"all"},{"fix":"Check the provider documentation for the correct resource paths, e.g., 'oci_core_vcn' became 'oci.core.Vcn'.","message":"Older versions (pre-4.0) used a different resource module structure. Resources may have moved or been renamed.","severity":"deprecated","affected_versions":">=4.0.0"},{"fix":"Set config values via 'pulumi config set' or instantiate a 'pulumi_oci.Provider' resource with required arguments.","message":"The provider requires explicit configuration via Pulumi config or a Provider resource. Environment variables are not automatically read.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Install the correct package: pip install pulumi-oci, then import as import pulumi_oci as oci.","cause":"Attempted to import the wrong package; the correct package is 'pulumi_oci'.","error":"ModuleNotFoundError: No module named 'oci'"},{"fix":"Ensure you have set the required configuration values: userOcid, fingerprint, privateKey, tenancyOcid, region. Use 'pulumi config set' or a Provider resource.","cause":"The provider could not authenticate with OCI due to missing or incorrect credentials in configuration.","error":"pulumi_oci.exceptions.InvalidCredentialsError"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}