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.222.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea30dc2da13507d48f04c139deef5bf8c2f32fb7bccd6a8d63869390e27c307c |
|
MD5 | bcf946e3a76c55ff2dad35a46160d7b3 |
|
BLAKE2b-256 | aa4859197aa3ad90fb06db733059c99d411f05c0a0e6831a1cffee4a7f4a842a |
Close
Hashes for cdktf_surreal_backend-1.0.222-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0e3a1222fd24c671b492ad08ebfc8527a43d1f81587c7dda8fe994ce8505929 |
|
MD5 | 9b9af6d841a46b7fedd4d8b1ac67f54f |
|
BLAKE2b-256 | 7fc1c0ce640f52630f1d99b130bdc6fd83dcbf25b13bafeb2fccf9a80e48e9c1 |