@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, 07:15 UTC

main
md 137 lines 5.66 KB
Rendered Raw
1 ---
2 title: 2.0.0-beta.53 - AWS Auth & Config Props
3 date: 2026-06-10T18:00:00Z
4 category: release
5 excerpt: v2.0.0-beta.53 moves AWS authentication onto Alchemy profiles — `alchemy login` now manages AWS credentials like every other provider — and extends `effect/Config` from Worker init into any resource input prop.
6 ---
7
8 AWS authentication now runs through Alchemy's own auth-provider
9 system. `alchemy login` manages AWS credentials the same way it
10 manages Cloudflare's — one profile (selected by `ALCHEMY_PROFILE`),
11 one interactive setup, no `AWS_PROFILE` / `AWS_ACCOUNT_ID` env
12 plumbing in your shell. And `effect/Config`, which beta.45 made the
13 way to read config inside a Worker, now works in any resource input
14 prop too.
15
16 :::caution
17 **Breaking changes for AWS users:**
18
19 - **AWS credentials resolve through the Alchemy auth provider.**
20 `AWSEnvironment.Default` no longer reads `AWS_PROFILE` / SSO config
21 directly — run `alchemy login --configure` once and pick SSO,
22 Environment Variables, or Stored. Under CI the Environment
23 Variables method is selected automatically, so
24 `aws-actions/configure-aws-credentials` pipelines keep working
25 ([#574](https://github.com/alchemy-run/alchemy/pull/574)).
26 - **`AWSEnvironment` is now lazy.** The service holds an
27 `Effect<AWSEnvironmentShape>` — read it with
28 `yield* AWSEnvironment.current` instead of `yield* AWSEnvironment`.
29 `AWSEnvironment.makeEnvironment` and `loadDefault` are removed
30 ([#567](https://github.com/alchemy-run/alchemy/pull/567)).
31 :::
32
33 ## AWS auth through `alchemy login`
34
35 Setting up AWS is now the same flow as every other provider:
36
37 ```sh
38 alchemy login --configure
39
40 # AWS authentication method
41 # ● SSO — aws sso login, credentials loaded from AWS SSO cache
42 # ○ Environment Variables — AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY
43 # ○ Stored — stored in ~/.alchemy/credentials
44 ```
45
46 Your AWS account ID is captured automatically via
47 `STS.GetCallerIdentity` and saved on the profile — the Stored method
48 detects it from the keys you paste, and the Environment Variables
49 method falls back to STS when `AWS_ACCOUNT_ID` isn't exported
50 ([#574](https://github.com/alchemy-run/alchemy/pull/574)).
51
52 Auth providers are also evaluated **lazily** now
53 ([#567](https://github.com/alchemy-run/alchemy/pull/567)).
54 Credentials resolve the first time a resource actually needs them —
55 a stack that touches no AWS resources never prompts for AWS auth.
56 Inside lifecycle operations, the environment is read through the new
57 accessor:
58
59 ```diff lang="typescript"
60 reconcile: Effect.fn(function* ({ id, news }) {
61 - const { accountId, region } = yield* AWSEnvironment;
62 + const { accountId, region } = yield* AWSEnvironment.current;
63 // ...
64 }),
65 ```
66
67 Rounding it out, `alchemy login` always refreshes credentials instead
68 of short-circuiting on a non-expired cache
69 ([#575](https://github.com/alchemy-run/alchemy/pull/575)), and
70 `--configure` no longer runs a redundant login pass after the
71 interactive setup completes.
72
73 ## `effect/Config` in any input prop
74
75 [beta.45](/blog/2026-05-29-beta-45) made `effect/Config` the way to
76 read secrets and variables inside a Worker's init. beta.53 completes
77 the picture: `Config` values are resolved in **resource input props**
78 — at the top level or nested anywhere inside objects and arrays
79 ([#566](https://github.com/alchemy-run/alchemy/pull/566)).
80
81 ```typescript
82 export default class EffectWorker extends Cloudflare.Worker<EffectWorker>()(
83 "EffectWorker",
84 {
85 main: import.meta.filename,
86 dev: {
87 port: Config.number("PORT").pipe(Config.withDefault(1338)),
88 },
89 },
90 Effect.gen(function* () {
91 /* ... */
92 }),
93 ) {}
94 ```
95
96 The plan resolves each `Config` against the deploy environment's
97 `ConfigProvider`, so the concrete value flows into diffing and
98 hashing — an opaque `Config` would otherwise hash the same no matter
99 what it evaluates to. `Config.redacted` resolves to a `Redacted` that
100 stays wrapped end to end, preserving the secrecy boundary. See
101 [Concepts › Secrets and Config](/environments/secrets).
102
103 ## `alchemy dev` fixes
104
105 Two dev-server fixes land via `@distilled.cloud/cloudflare-runtime`
106 bumps (0.10.5 → 0.10.11): a race condition when a stack runs more
107 than one Workflow in `alchemy dev`
108 ([#573](https://github.com/alchemy-run/alchemy/pull/573)), and
109 incorrect Vite handling of `require()` of Node built-ins in Worker
110 code ([#556](https://github.com/alchemy-run/alchemy/pull/556)).
111
112 ## Also in this release
113
114 - **R2 custom-domain updates ride out `NoSuchBucket`** during R2's
115 endpoint eventual-consistency window — including when a create
116 loses a race and the winning bucket isn't readable yet
117 ([448ba756](https://github.com/alchemy-run/alchemy/commit/448ba756)).
118 - **Narrowed S3 bucket tag-fetch requirements** to
119 `Credentials | HttpClient | Region`. Thanks
120 **[Kilian Cirera Sant](https://github.com/kiliancs)**
121 ([#555](https://github.com/alchemy-run/alchemy/pull/555)).
122 - **Fixed Worker static-assets bundling** by switching to a named
123 import of `@alchemy.run/node-utils/ignore`
124 ([#572](https://github.com/alchemy-run/alchemy/pull/572)).
125 - **Added a missing permission to
126 [Tutorial Part 5](/cloudflare/tutorial/part-5)**. Thanks
127 **[David J. Felix](https://github.com/DavidJFelix)**
128 ([#560](https://github.com/alchemy-run/alchemy/pull/560)).
129
130 ## Where to go next
131
132 - [Concepts › Profiles](/environments/profiles)
133 - [Concepts › Secrets and Config](/environments/secrets)
134 - [Concepts › Local Development](/environments/local-development)
135 - [Guides › CLI](/cli)
136 - [CHANGELOG](https://github.com/alchemy-run/alchemy/blob/main/CHANGELOG.md#v200-beta53)
137 - [Compare v2.0.0-beta.52 → v2.0.0-beta.53](https://github.com/alchemy-run/alchemy/compare/v2.0.0-beta.52...v2.0.0-beta.53)