Skip to main content

Custom Javascript Script Configuration

This section details how to configure the transformation, once a script is written. You can find a guide to creating the script itself in the create a script section.

You can also find some complete example use cases in the examples section.

The Custom Javascript Script transformation uses the goja embedded Javascript engine to run scripts upon the data.

If a script errors or times out, a transformation failure occurs.

Scripts must be available to the runtime of the application at the path provided in the script_path configuration option. For docker, this means mounting the script to the container and providing that path.

Here is an example of a minimal configuration for the custom Javascript script transformation:

assets/docs/configuration/transformations/custom-scripts/js-configuration-minimal-example.hcl
loading...

Here is an example of every configuration option:

assets/docs/configuration/transformations/custom-scripts/js-configuration-full-example.hcl
loading...
Was this page helpful?