Skip to main content

Prebuilt oci Provider for Terraform CDK (cdktf)

Project description

CDKTF prebuilt bindings for oracle/oci provider version 7.19.0

This repo builds and publishes the Terraform oci provider bindings for CDK for Terraform.

Available Packages

npm

Published from this repository at https://www.npmjs.com/package/cdktf-provider-oci (owner: sureshveeragoni).

npm install cdktf-provider-oci

PyPI

Published at https://pypi.org/project/cdktf-provider-oci (owner: sureshveeragoni).

pip install cdktf-provider-oci

Usage

TypeScript

import { App, TerraformStack } from 'cdktf';
import { Construct } from 'constructs';
import { OciProvider } from 'cdktf-provider-oci/lib/provider';
import { CoreInstance } from 'cdktf-provider-oci/lib/core-instance';

class MyStack extends TerraformStack {
  constructor(scope: Construct, id: string) {
    super(scope, id);

    new OciProvider(this, 'oci', {
      region: 'us-ashburn-1',
    });

    new CoreInstance(this, 'example', {
      compartmentId: 'ocid1.compartment.oc1..exampleuniqueID',
      availabilityDomain: 'kIdk:US-ASHBURN-AD-1',
      shape: 'VM.Standard.E4.Flex',
      sourceDetails: {
        sourceType: 'image',
        imageId: 'ocid1.image.oc1..exampleuniqueID',
      },
      createVnicDetails: {
        subnetId: 'ocid1.subnet.oc1..exampleuniqueID',
      },
    });
  }
}

const app = new App();
new MyStack(app, 'oci-example');
app.synth();

Install dependencies with npm install cdktf cdktf-provider-oci constructs before synthesizing.

Python

from constructs import Construct
from cdktf import App, TerraformStack
from cdktf_provider_oci.provider import OciProvider
from cdktf_provider_oci.core_instance import CoreInstance


class MyStack(TerraformStack):
    def __init__(self, scope: Construct, construct_id: str) -> None:
        super().__init__(scope, construct_id)

        OciProvider(self, "oci", region="us-ashburn-1")

        CoreInstance(self, "example",
            compartment_id="ocid1.compartment.oc1..exampleuniqueID",
            availability_domain="kIdk:US-ASHBURN-AD-1",
            shape="VM.Standard.E4.Flex",
            source_details={
                "source_type": "image",
                "image_id": "ocid1.image.oc1..exampleuniqueID",
            },
            create_vnic_details={
                "subnet_id": "ocid1.subnet.oc1..exampleuniqueID",
            },
        )


app = App()
MyStack(app, "oci-example")
app.synth()

Install dependencies with pip install cdktf cdktf-provider-oci constructs before synthesizing.

Docs

Find auto-generated docs for this provider here:

You can also visit a hosted version of the documentation on constructs.dev.

Versioning

This project is explicitly not tracking the Terraform oci provider version 1:1. In fact, it always tracks latest of ~> 7.19.0 with every release. If there are scenarios where you explicitly have to pin your provider version, you can do so by generating the provider constructs manually.

These are the upstream dependencies:

If there are breaking changes (backward incompatible) in any of the above, the major version of this project will be bumped.

Features / Issues / Bugs

Please report bugs and issues to the CDK for Terraform project:

Contributing

Projen

This is mostly based on Projen, which takes care of generating the entire repository.

cdktf-provider-project based on Projen

There's a custom project builder which encapsulate the common settings for all cdktf prebuilt providers.

Provider Version

The provider version can be adjusted in ./.projenrc.js.

Repository Management

The repository is managed by CDKTF Repository Manager.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdktf_provider_oci-1.0.4.tar.gz (13.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdktf_provider_oci-1.0.4-py3-none-any.whl (13.6 MB view details)

Uploaded Python 3

File details

Details for the file cdktf_provider_oci-1.0.4.tar.gz.

File metadata

  • Download URL: cdktf_provider_oci-1.0.4.tar.gz
  • Upload date:
  • Size: 13.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cdktf_provider_oci-1.0.4.tar.gz
Algorithm Hash digest
SHA256 3105c2df2d9e424617378adc3b2600cee552ec242d464460b6b46c6970bbe3a8
MD5 61d4e9c884d7b1f988117d6f2cdb0de7
BLAKE2b-256 835f08307efc11b5649b4bb39c7662386bfa0db445df1607310df38e617212cf

See more details on using hashes here.

File details

Details for the file cdktf_provider_oci-1.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for cdktf_provider_oci-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ea5120987bb661b085b5ba1a095d0ab5c4cd231039bba96eca00b9c9ec7ce0cb
MD5 676d531ce23d66b6a6cc74b8354128e1
BLAKE2b-256 5499bb6ca3363ffd02fded82b43b932b19711d2e41649ae946f6af2e9c01aaad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page