npm.io
0.5.26 • Published 10h agoCLI

@stacksjs/ts-cloud

Licence
MIT
Version
0.5.26
Deps
3
Size
9.5 MB
Vulns
0
Weekly
66.2K

@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-cloud
npm install @stacksjs/ts-cloud

Usage

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 status

Features

  • 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

Keywords