bucket share
Need to send someone a file without making the whole bucket public? Presign a temporary URL.
bash
awsutopia bucket share <bucket> <key> [--expires 1h] [--force] [--dry-run] [--json]What you'll get
A HTTPS GET URL that works until expiresAt.
bash
awsutopia bucket share my-app-dev-assets path/file.txt --expires 1h
awsutopia bucket share my-app-dev-assets path/file.txt --expires 30m --json| Flag | Default | Notes |
|---|---|---|
--expires | 1h | 30m, 1h, 24h (max 7d). Bad value → exit 2 (INVALID_EXPIRES) |
--force | off | Share from utopia-tagged buckets in other projects |
--dry-run | off | Verifies tags; does not sign a URL |
JSON success
json
{
"ok": true,
"data": {
"url": "https://…",
"expiresAt": "2026-01-01T01:00:00.000Z",
"bucket": "my-bucket",
"key": "path/file.txt"
}
}The bucket must be utopia-tagged (current project by default). Same ownership idea as destroy.