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
| 1 | import * as AWS from "@alchemy.run/aws"; |
| 2 | import * as Effect from "effect/Effect"; |
| 3 | |
| 4 | /** The private subnets and security group Aurora runs in (stands in for a real VPC setup). */ |
| 5 | export const Private = Effect.gen(function* () { |
| 6 | const vpc = yield* AWS.EC2.Vpc("Vpc", { cidrBlock: "10.0.0.0/16" }); |
| 7 | const a = yield* AWS.EC2.Subnet("A", { |
| 8 | vpcId: vpc.vpcId, |
| 9 | cidrBlock: "10.0.1.0/24", |
| 10 | availabilityZone: "us-east-1a", |
| 11 | }); |
| 12 | const b = yield* AWS.EC2.Subnet("B", { |
| 13 | vpcId: vpc.vpcId, |
| 14 | cidrBlock: "10.0.2.0/24", |
| 15 | availabilityZone: "us-east-1b", |
| 16 | }); |
| 17 | const sg = yield* AWS.EC2.SecurityGroup("Db", { vpcId: vpc.vpcId, description: "database" }); |
| 18 | return { subnetIds: [a.subnetId, b.subnetId], securityGroupIds: [sg.groupId] }; |
| 19 | }); |