Crates.io | zeroscaler-boot-fargate |
lib.rs | zeroscaler-boot-fargate |
version | 0.1.1 |
created_at | 2025-05-16 12:01:16.716861+00 |
updated_at | 2025-05-23 12:26:25.829729+00 |
description | A library to boot a Fargate task using AWS SDK for Rust |
homepage | https://zeroscaler.io |
repository | https://github.com/lephyrius/zeroscaler |
max_upload_size | |
id | 1676389 |
size | 100,362 |
Construct (Zeroscaler
) which contains and deploys a lambda that boots up your Fargate application when there is an incoming request. It also monitors
The construct defines an interface (ZeroscalerProps
) to configure the visibility timeout of the queue.
npm run build
compile typescript to jsnpm run watch
watch for changes and compilenpm run test
perform the jest unit testsflowchart TD
A["Client"] L_A_B_0@-- HTTP Request --> B["Zeroscaler"]
B -. Register Target .-> C["ELB Target Group"]
B L_B_A_0@-- Serve HTML with refresh --> A
C -- Health Check --> D["ECS Fargate"]
D -- Boot --> E["Your Fargate Application"]
A L_A_E_0@-- Refresh when booted --> E
E L_E_A_0@-- Response --> A
linkStyle 0 stroke:#00C853,fill:none
linkStyle 1 stroke:#AA00FF,fill:none
linkStyle 2 stroke:#00C853,fill:none
linkStyle 3 stroke:#AA00FF,fill:none
linkStyle 4 stroke:#AA00FF,fill:none
linkStyle 5 stroke:#2962FF,fill:none
linkStyle 6 stroke:#2962FF,fill:none
L_A_B_0@{ animation: fast }
L_B_A_0@{ animation: fast }
L_A_E_0@{ animation: fast }
L_E_A_0@{ animation: fast }
npm install @zeroscaler/zeroscaler-cdk
import * as cdk from 'aws-cdk-lib';
import { Construct } from 'constructs';
import { ZeroScaler } from '@zeroscaler/zeroscaler-cdk';
new Zeroscaler(stack, 'MyZeroscaler', {
targetGroupArn: 'arn:aws:elasticloadbalancing:...',
fargateTaskArn: 'arn:aws:ecs:...',
// Optionally override vpc or cluster
});
MPL-2.0