MDAA TS Docs
    Preparing search index...

    Utility helpers for MLOps seed code resolution at CDK synth time.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Resolves a seed code path to an absolute zip file path.

      • If the path already points to a .zip file, it is returned as-is.
      • If the path is a directory, the directory is zipped into a temp file (excluding .pyc / pycache / .git / .egg-info) and the temp path is returned. The temp file is removed after the calling code has consumed it (i.e. after CDK's Code.fromZipFile has read it).

      Uses execSync with the cwd option instead of an interpolated cd command to avoid shell-injection risks with paths that contain special characters.

      Parameters

      • seedCodePath: string

      Returns string