UNPKG

@pulumiverse/cockroach

Version:

A Pulumi package to create and managed Cockroach DB resources in Pulumi programs.

58 lines 2.65 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getClusterCertOutput = exports.getClusterCert = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * TLS certificate for the specified CockroachDB cluster. Certificates for dedicated clusters should be written to `$HOME/Library/CockroachCloud/certs/<cluster name>-ca.crt` on MacOS or Linux, or `$env:appdata\CockroachCloud\certs\<cluster name>-ca.crt` on Windows. * * Serverless clusters use the root PostgreSQL CA cert. If it isn't already installed, the certificate can be appended to `$HOME/.postgresql/root.crt` on MacOS or Linux, or `$env:appdata\postgresql\root.crt` on Windows. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cockroach from "@pulumi/cockroach"; * * const config = new pulumi.Config(); * const clusterId = config.require("clusterId"); * const cockroach = cockroach.getClusterCert({ * id: clusterId, * }); * ``` */ function getClusterCert(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("cockroach:index/getClusterCert:getClusterCert", { "id": args.id, }, opts); } exports.getClusterCert = getClusterCert; /** * TLS certificate for the specified CockroachDB cluster. Certificates for dedicated clusters should be written to `$HOME/Library/CockroachCloud/certs/<cluster name>-ca.crt` on MacOS or Linux, or `$env:appdata\CockroachCloud\certs\<cluster name>-ca.crt` on Windows. * * Serverless clusters use the root PostgreSQL CA cert. If it isn't already installed, the certificate can be appended to `$HOME/.postgresql/root.crt` on MacOS or Linux, or `$env:appdata\postgresql\root.crt` on Windows. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cockroach from "@pulumi/cockroach"; * * const config = new pulumi.Config(); * const clusterId = config.require("clusterId"); * const cockroach = cockroach.getClusterCert({ * id: clusterId, * }); * ``` */ function getClusterCertOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("cockroach:index/getClusterCert:getClusterCert", { "id": args.id, }, opts); } exports.getClusterCertOutput = getClusterCertOutput; //# sourceMappingURL=getClusterCert.js.map