@lbrlabs/pulumi-cockroach
Version:
A Pulumi package to create and managed cockroach db resources in Pulumi programs.
45 lines (44 loc) • 1.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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.
*/
export declare function getClusterCert(args: GetClusterCertArgs, opts?: pulumi.InvokeOptions): Promise<GetClusterCertResult>;
/**
* A collection of arguments for invoking getClusterCert.
*/
export interface GetClusterCertArgs {
/**
* Cluster ID.
*/
id: string;
}
/**
* A collection of values returned by getClusterCert.
*/
export interface GetClusterCertResult {
/**
* Certificate contents.
*/
readonly cert: string;
/**
* Cluster ID.
*/
readonly id: string;
}
/**
* 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.
*/
export declare function getClusterCertOutput(args: GetClusterCertOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetClusterCertResult>;
/**
* A collection of arguments for invoking getClusterCert.
*/
export interface GetClusterCertOutputArgs {
/**
* Cluster ID.
*/
id: pulumi.Input<string>;
}