@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
mdx 73 lines 2.44 KB
Raw
1 ---
2 title: aws
3 description: AWS provider commands — bootstrap the per-account assets bucket that Lambda deployments rely on.
4 ---
5
6 import Terminal from "../../../components/Terminal.astro";
7
8 ```sh
9 alchemy provider aws <subcommand> [options]
10 ```
11
12 Cloud-provider commands for AWS — managing the per-account
13 infrastructure that Alchemy itself relies on.
14
15 ## `provider aws bootstrap`
16
17 ```sh
18 alchemy provider aws bootstrap [options]
19 ```
20
21 Set up the AWS assets bucket required for deploying Lambda functions
22 and other AWS resources that need artifact storage.
23
24 <Terminal content={`[g]✓[/g] Created assets bucket: alchemy-assets-123456789012-us-west-2-an`} />
25
26 Re-running is a no-op:
27
28 <Terminal content={`[g]✓[/g] Assets bucket already exists: alchemy-assets-123456789012-us-west-2-an`} />
29
30 | Option | Description |
31 | ---------------------- | -------------------------------------------------------------------------------- |
32 | `--aws-profile <name>` | AWS CLI/SSO profile to use for credentials (default: `default`) |
33 | `--region <region>` | AWS region to bootstrap. Defaults to the AWS CLI profile's region, then `us-east-1`. |
34 | `--env-file <path>` | Load environment variables from a file |
35
36 Bootstrap requires an AWS CLI profile that is either **SSO**
37 (`sso_account_id`) or **console login** (`login_session` from
38 `aws login`). It fails with a clear error if the profile is
39 neither.
40
41 Logs are written to the run log under `~/.alchemy/logs` (see [Log output](/cli#log-output)).
42
43 ## `provider aws teardown`
44
45 ```sh
46 alchemy provider aws teardown [options]
47 ```
48
49 Removes every bootstrap bucket in the selected region and reports the
50 count. It accepts the same profile, region, and environment-file options as
51 `bootstrap`, plus `--yes` to skip confirmation.
52
53 <Terminal content={`[g]✓[/g] Destroyed 1 bootstrap bucket(s): alchemy-assets-123456789012-us-west-2-an`} />
54
55 If there's nothing to remove:
56
57 <Terminal content={`[g]✓[/g] No bootstrap buckets found to destroy`} />
58
59 ```sh
60 # Bootstrap with the default profile
61 alchemy provider aws bootstrap
62
63 # Bootstrap a specific region and profile
64 alchemy provider aws bootstrap --aws-profile prod --region us-west-2
65
66 # Remove bootstrap resources
67 alchemy provider aws teardown
68 ```
69
70 ## Where next
71
72 - [cloudflare](/cli/cloudflare) — provider commands for Cloudflare
73 - [AWS](/aws) — the AWS provider hub