npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@computesdk/aws-ecs

v1.1.11

Published

AWS ECS provider for ComputeSDK - scalable containerized sandboxes using Fargate

Downloads

1,280

Readme

@computesdk/aws

AWS ECS Fargate provider for ComputeSDK that enables creating and managing containerized sandboxes on AWS infrastructure.

Installation

npm install @computesdk/aws

Configuration

The AWS provider requires the following environment variables and AWS resources:

# AWS Credentials (or use IAM roles/profiles)
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_REGION=us-east-1

# Required AWS Resources
AWS_ECS_CLUSTER=your-ecs-cluster
AWS_TASK_DEFINITION=your-task-definition
AWS_SUBNETS=subnet-xxx,subnet-yyy,subnet-zzz
AWS_SECURITY_GROUPS=sg-xxx

Usage

Gateway Mode (Recommended)

Use the gateway for zero-config auto-detection:

import { compute } from 'computesdk';

// Auto-detects AWS ECS from AWS credentials and environment variables
const sandbox = await compute.sandbox.create();
console.log(`Created sandbox: ${sandbox.id}`);

// List all running sandboxes
const sandboxes = await compute.sandbox.list();

// Destroy the sandbox
await sandbox.destroy();

Direct Mode

For direct SDK usage without the gateway:

import { fargate } from '@computesdk/aws';

const compute = fargate({
  cluster: 'my-ecs-cluster',
  taskDefinition: 'my-task-definition',
  subnets: ['subnet-12345', 'subnet-67890'],
  securityGroups: ['sg-12345'],
  region: 'us-east-1'
});

// Create a sandbox (ECS task)
const sandbox = await compute.sandbox.create({ runtime: 'node' });
console.log(`Created sandbox: ${sandbox.id}`);

// List all running sandboxes
const sandboxes = await compute.sandbox.list();

// Destroy the sandbox
await sandbox.destroy();

Currently Implemented

Sandbox Operations

  • create() - Creates a new ECS Fargate task
  • getById() - Retrieves a specific ECS task by ARN
  • list() - Lists all running ECS tasks in the cluster
  • destroy() - Stops an ECS task

Configuration Options

  • cluster - ECS cluster name or ARN (required)
  • taskDefinition - Task definition family name or ARN (required)
  • subnets - VPC subnet IDs for task networking (required)
  • securityGroups - Security group IDs for task networking (required)
  • accessKeyId - AWS access key (optional - falls back to credential chain)
  • secretAccessKey - AWS secret key (optional - falls back to credential chain)
  • region - AWS region (optional - defaults to AWS_REGION env var or us-east-1)
  • assignPublicIp - Whether to assign public IP (optional - defaults to true)
  • containerName - Container name in task definition (optional - defaults to 'sandbox')

Prerequisites

Before using this provider, you need to set up:

  1. ECS Cluster: A Fargate-compatible ECS cluster
  2. Task Definition: A task definition with your desired container image
  3. VPC Networking: Subnets and security groups for task networking
  4. IAM Permissions: Appropriate permissions to create/manage ECS tasks

Notes

  • Tasks use AWS Fargate launch type (serverless containers)
  • Container images are specified in the task definition, not at runtime
  • The runtime parameter is acknowledged but actual environment depends on task definition
  • Tasks are immediately stopped when destroyed
  • All operations use the AWS SDK v3 for ECS