A package that vends a construct to setup the surreal backend in CDKTF
Project description
cdktf-surreal-backend
This is library to create a CDKTF construct for terraform-backend-surreal. This library vends a single construct, SurrealBackend
, which extends the default HttpBackend
construct to make instantiation of this easier.
Usage
Example
import { TerraformStack } from "cdktf";
import { SurrealBackend } from '@awlsring/cdktf-surreal-backend';
export class MyStack extends TerraformStack {
constructor(scope: Construct, name: string, props: MyStackProps) {
super(scope, name);
const backend = new SurrealBackend(this, 'Backend', {
address: 'https://localhost:8032',
project: "homelab",
stack: "infra",
username: "terraform",
password: "alligator3",
});
... // other stuff
}
}
Construct Properties:
- address: The address your backend sever is reachable at.
- project: The project name to use for this stack.
- stack: The stack name to use for this stack. stacks names must be unique across a project.
- username: The username to use for authentication, configured in the server's config.yaml file
- password: The password to use for authentication, configured in the server's config.yaml file
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for cdktf-surreal-backend-1.0.117.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54dfb84e3d61a0092069fb5d4a48ce183961119b8af9ab65d489f826ccad1bf9 |
|
MD5 | 1f6b28954d7c4a469e6bc629af41f3ea |
|
BLAKE2b-256 | 4991c6ae4009d27f5c4ab59098fc681f859873c63f7a25bd8105b08f3375fb73 |
Close
Hashes for cdktf_surreal_backend-1.0.117-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18191ab5fc6d4f75da7fb323d539a3a0dbba3432e9a2e5c9b6f8bc5709712615 |
|
MD5 | 4a8375011d8c1499b6f2d8b84c4270fc |
|
BLAKE2b-256 | 4fbec364a4dd6d2bc26c01fdbe40c212400d2191a4d85d664fc8113eaa0b254b |