Package Exports
- @stacksjs/ts-cloud
- @stacksjs/ts-cloud/aws
- @stacksjs/ts-cloud/bin/cli.js
- @stacksjs/ts-cloud/deploy
- @stacksjs/ts-cloud/dns
- @stacksjs/ts-cloud/index
- @stacksjs/ts-cloud/index.d.ts
- @stacksjs/ts-cloud/index.js
- @stacksjs/ts-cloud/push
Readme
@stacksjs/ts-cloud
A lightweight, performant infrastructure-as-code library and CLI for deploying both server-based (EC2) and serverless applications on AWS.
Installation
bun add @stacksjs/ts-cloudnpm install @stacksjs/ts-cloudUsage
import { defineStack } from '@stacksjs/ts-cloud'
const stack = defineStack({
name: 'my-app',
resources: {
// Define your infrastructure
},
})
// Deploy the stack
await stack.deploy()CLI
# Initialize a new project
cloud init
# Deploy your stack
cloud stack deploy
# Manage resources
cloud database status
cloud cdn invalidate
cloud storage list
cloud secrets set MY_SECRET value
# Monitoring & logs
cloud logs tail --stack my-app
cloud cost estimate
cloud statusFeatures
- TypeScript-first infrastructure as code
- Full AWS CloudFormation support with type safety
- CLI for managing deployments, databases, CDN, storage, secrets, and more
- Server-based (EC2) and serverless deployment support
- DNS and SSL management
- Container and registry support
- Event-driven architecture (EventBridge, SNS, SQS)
- Scheduler, notifications, and email integration
- Environment and team management
- Cost estimation and analytics
- Cross-platform compiled binaries (Linux, macOS, Windows)
License
MIT