Ensure that all functions managed by Architect have their dependencies installed. Functions containing all its required dependencies are considered to be “hydrated” - thus the name!
arc hydrate will also copy shared code from
src/shared into all functions and
@http GET functions.
When developing locally with Sandbox, it is not necessary to manually run
hydrate since Sandbox handles this automatically. However, it can be helpful to ensure hydration happens prior to a process like
arc hydrate [--shared|--update]
[--shared, -s]Hydrates and copies shared files only
[--update, -u]Updates each function’s dependencies
[--verbose, -v]Prints additional output to the console
⚠️ This operation can take time to complete depending on how many Lambdas you have and how many modules they require.
Hydrate uses the following commands under the hood, depending on project’s or function’s runtime:
arc hydrate --update is almost functionally identical to
arc hydrate, except it will update dependencies to newer versions if they exist. This is done via:
pip3 install -U --upgrade-strategy eager