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 sso
for AWS Single Sign-On.IAM User Account: Use
aws configure
for 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 uv
Navigate 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/activate
Add Shuttle Dependency
uv init uv add shuttle-cobra
Create Your Shuttle Project There is no
shuttle init
command for Python projects. Instead, you must create your project files manually.Create a
main.py
file: 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 deploy
Follow the prompts to confirm deployment.
View Application Logs To view logs from your deployed application:
shuttle logs # or uv run -m shuttle logs
Run Your Project Locally (Optional) To run your application locally using deployed resources:
shuttle run # or uv run -m shuttle run
Note: This will execute your application's
main
function (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