Install Mod via CLI

Install a Mod using Guardrails CLI

In this guide, you will:

Guardrails supports installing Mods via Guardrails CLI for various scenarios where command-line installation is preferred or required, including Government Cloud environments (e.g., AWS GovCloud) where UI-based interactions may be limited, automated deployment workflows and CI/CD pipelines, scripted installation processes for consistent deployments or restricted environments where direct web access is limited, and bulk mod installations across multiple workspaces.

[!IMPORTANT] This CLI-based approach is particularly important for AWS GovCloud environments, where direct access to Turbot's mod registry is restricted because the registry is hosted in commercial AWS accounts.

Prerequisites

[!NOTE] Mod Download Permissions: Even with a guardrails.turbot.com account, you may not have permissions to download mods. If you encounter permission errors during mod download, contact Turbot Support to request access to allow to download mods.

Step 1: Access Your Environment

[!NOTE] If a bastion host is not available in your environment, you can create one using this guide: Turbot Bastion Host

For GovCloud Environments

Log into the AWS account associated with your GovCloud production environment and connect to the main bastion host.

Bastion Host

For Commercial Cloud Environments

Ensure you have CLI access to your target environment with the Turbot CLI properly configured.

Step 2: Download Mod

Navigate to your desired directory for downloading the mod package, for example: cd /turbot/mods

Download the desired mod package using this Guardrails CLI command. This fetches the specified mod from the Guardrails registry, e.g., @turbot/aws-iam.

turbot download @turbot/aws-iam

Download Mod

Step 3: Install Mod to Workspace

Upload and install the downloaded mod into your target workspace by executing the command below with the appropriate CLI profile.

turbot up --zip-file turbot_aws-iam --profile <profile-name>

Install Mod

Step 4: Review

Review Mod Installation

Next Steps

Please see the following resources to learn more about Turbot Guardrails Enterprise:

Troubleshooting

Issue Description Guide
Login Authentication Error If you receive Failed to login to guardrails mod registry: Incorrect username or password error, verify your credentials by logging into guardrails.turbot.com. If you've forgotten your password, use the password reset option.
Mod Download Permissions If you receive Failed to download mod: You do not have the necessary permissions to download @turbot/<mod-name> from guardrails.turbot.com error, you need to request mod access through Turbot Support. Open Support Ticket
Mod Dependency If the mod installation fails due the dependent/parent mod not installed. Troubleshoot Mod Peer Dependency Error
Further Assistance If you continue to encounter issues, please open a ticket with us and attach the relevant information to assist you more efficiently. Open Support Ticket