Null resource creation?

How do I create a null resource to run some initial sql code once my rds cluster is configured?


The general setup is identical with all other providers. So, in cdktf.json you’ll need to specify the provider:

  "terraformProviders": ["null@~> 2.0"]

In Typescript, the actual code would then look like this:

import * as Null from ".gen/providers/null-provider";

// ..

const nullResource = new Null.Resource(this, "buildAndPush", {
  triggers: {
    foo: 'bar'

nullResource.addOverride("provisioner.local-exec.command", 'echo hello');

Can you explain a bit more about the “triggers”? Do I need to set it to something specific to invoke the resource?