local_file (Resource)

Generates a local file with the given content.

Example Usage

// DO NOT EDIT. Code generated by 'cdktf convert' - Please report bugs at https://cdk.tf/bug
import { Construct } from "constructs";
import { TerraformStack } from "cdktf";
/*
 * Provider bindings are generated by running `cdktf get`.
 * See https://cdk.tf/provider-generation for more details.
 */
import { File } from "./.gen/providers/local/file";
class MyConvertedCode extends TerraformStack {
  constructor(scope: Construct, name: string) {
    super(scope, name);
    new File(this, "foo", {
      content: "foo!",
      filename: "${path.module}/foo.bar",
    });
  }
}

Schema

Required

Optional

Read-Only