Emulator
The emulator is a standalone CLI application that attempts to emulate the target cloud entities locally. Currently only function
entity is supported.
To install:
git clone https://github.com/tc-functors/emulator.gitcd emulatormake./tc-emulator
To emulate a function
cd function-dirtc-emulator
The following command spins up a docker container with the defined layers in function.yml, sets up the paths, environment variables, AWS access, local code and runtime parameters (mem, handlers etc)
To run it as a shell (bash)
tc-emulator --shell
You can now invoke a payload locally with this emulator
tc invoke --local [--payload <payload.json | json-str>]