Quickstart
Follow these steps to deploy your first Shuttle project using Python
Deploy your project
Configure AWS Credentials Before deploying, ensure you have authenticated with AWS using one of the following methods:
SSO Enabled: Use
aws configure ssofor AWS Single Sign-On.IAM User Account: Use
aws configurefor standard IAM user credentials.Temporary IAM Credentials: Set the following environment variables:
export AWS_ACCESS_KEY_ID='your_access_key' export AWS_SECRET_ACCESS_KEY='your_secret_key' export AWS_SESSION_TOKEN='your_session_token'Other Options: IAM role metadata and OIDC federation are also supported.
Install uv for Virtual Environment Management
pip install uvNavigate to Your Project Directory Change into the newly created project directory:
cd <your-project-name>Create and Activate a Virtual Environment
uv venv source .venv/bin/activateAdd Shuttle Dependency
uv init uv add shuttle-cobraCreate Your Shuttle Project There is no
shuttle initcommand for Python projects. Instead, you must create your project files manually.Create a
main.pyfile: you can use the built-in user-project example as a starting point.Deploy Your Project Deploy your application to the Shuttle platform:
shuttle deploy # or uv run -m shuttle deployFollow the prompts to confirm deployment.
View Application Logs To view logs from your deployed application:
shuttle logs # or uv run -m shuttle logsRun Your Project Locally (Optional) To run your application locally using deployed resources:
shuttle run # or uv run -m shuttle runNote: This will execute your application's
mainfunction (or equivalent entrypoint) and connect to the remote resources provisioned in the cloud.Destroy Your Project (Cleanup) When you're finished, you can destroy all provisioned infrastructure and associated resources:
shuttle destroy # or uv run -m shuttle destroy
Last updated