prism agent apply constructs your agent using the information in your agent's configuration YML. For example, for Docker agents, prism apply constructs a custom Docker image containing your project data.
Usage: prism agent apply [OPTIONS]
Build your agent using a configuration YML.
Examples:
• prism agent apply -f ./ec2.yml
• prism agent apply -f /Users/docker.yml
╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ * --file -f TEXT Path to agent configuration YML │
│ [required] │
│ --log-level -l [info|warn|error|debug] Set the log level │
│ --full-tb Show the full traceback when an error occurs │
│ --help Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Here's what prism agent apply does under the hood:
Parses the project's prism_project.py file and identifies all paths containing project related data (e.g., SYS_PATH_CONF, PROFILE_YML_PATH, TRIGGERS_YML_PATH, and so on).
Securely builds the agent computing environment with all the data identified in step 1. For example:
For Docker agents, Prism constructs a transient build context and uses Docker's Python SDK to create an image.
For EC2 instances / EMR clusters (coming soon!), Prism uses the SSH protocol to securely copy all project data into the virtual machine.
Example
Here's what the output looks like in Terminal (using a Docker agent as an example):