Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

slalombuild/fusion-cdk

Repository files navigation

Fusion CDK

Secure by default cloud infrastructure configuration using the Terraform CDK.

Documentation

Install 📥

Install the library

Typescript/Javascript

npm install @slalombuild/fusion-cdk

Usage ⚡️

Getting started with the Fusion CDK library is almost exactly like using the terraform cdk constructs you're already used to. Each construct is a light wrapper around the original provider with some opinionated security constraints added on.

import { App, TerraformStack } from "cdktf";
import * as fusion from "@slalombuild/fusion-cdk";
import { security } from "@slalombuild/fusion-cdk/@types";

const app = new App();

const stack = new TerraformStack(app, "cdktf-constructs-demo");

new fusion.S3Bucket(stack, "bucket", {
  // You can opt out of security controls 
  // by explicitly marking your property as insecure
  encryptionKey: security.NOT_SECURE,
});

app.synth();

Development

For detailed development instructions, view our DEVELOPMENT.md and CONTRIBUTING.md.