A resource is one part of your stack: a service, a database, a bucket, a queue. You declare it in the resources of your configuration, and Stacktape creates the AWS services it needs in your AWS account. Declaring resources explains the syntax. This page helps you pick the right resource.
Pick by what you are building
| You want to | Use |
|---|
| Run an API or a web app in a container, with a public HTTPS URL | Web service |
| Run code on demand: an API handler, a webhook, a queue or schedule consumer | Lambda function |
| Run a background worker or queue consumer that stays on | Worker service |
| Run an internal service that only your other resources can call | Private service |
| Run a job to completion, with GPUs or a long run time | Batch job |
| Deploy a Next.js, Astro, Nuxt, SvelteKit, SolidStart, TanStack Start or Remix app | The framework page under Frontend |
| Host a static site or a single-page app | Static hosting |
| Store relational data in PostgreSQL or MySQL | Relational database |
| Store key-value data without managing servers | DynamoDB |
| Cache data or keep sessions | Redis, or Upstash Redis for Lambda-heavy apps |
| Store files and uploads | S3 bucket |
| Queue work between services | SQS queue |
| Run code on a schedule, a file upload or a queue message | A trigger on a Lambda function |
| Send email from your app | Email sender |
| Sign users up and in | User authentication pool |
| Use an AWS service that has no resource here | Raw CloudFormation or an AWS CDK construct |
Choose a compute resource
Compute resources run your code. Pick by how it runs and whether it may cost money with no traffic.
| Resource | How it runs | Costs while idle |
|---|
| Web service | Always on, in containers, with a public HTTPS URL | Yes |
| Private service | Always on, in containers. Only resources in the stack can call it. | Yes |
| Worker service | Always on, in containers, with no URL. It polls queues or runs loops. | Yes |
| Multi-container workload | Always on, several containers in one task | Yes |
| Lambda function | Per event from a trigger, such as a request, a queue message or a schedule, for up to 15 minutes | No |
| Batch job | From a trigger until the job finishes | No |
| Edge function | Per CloudFront request or response | No |
| Convex | Always on, as a self-hosted Convex backend | Yes |
Containers are packaged with container packaging and Lambda functions with function packaging.
All resources
Compute
| Resource | AWS service | Use it for |
|---|
| Web service | ECS on Fargate or EC2 | Public APIs and web apps in a container |
| Lambda function | Lambda | Code that runs per event and scales to zero |
| Private service | ECS on Fargate or EC2 | Internal services reachable only inside the stack |
| Worker service | ECS on Fargate or EC2 | Background workers and queue consumers |
| Batch job | AWS Batch | Jobs that run to completion, with CPU, memory or GPU needs |
| Multi-container workload | ECS on Fargate or EC2 | Containers that start together and share a network |
| Edge function | Lambda@Edge | Small request and response changes at the CDN |
| Convex | ECS, RDS, S3 and a load balancer | A self-hosted Convex backend |
Frontend
| Resource | AWS service | Use it for |
|---|
| Static hosting | S3 and CloudFront | Static sites, single-page apps and pre-rendered builds |
| Next.js | Lambda, S3 and CloudFront | Next.js with server rendering |
| Astro | Lambda, S3 and CloudFront | Astro with server-rendered routes |
| Nuxt | Lambda, S3 and CloudFront | Nuxt with server rendering |
| SvelteKit | Lambda, S3 and CloudFront | SvelteKit with server rendering |
| SolidStart | Lambda, S3 and CloudFront | SolidStart with server rendering |
| TanStack Start | Lambda, S3 and CloudFront | TanStack Start with server rendering |
| Remix | Lambda, S3 and CloudFront | Remix with server rendering |
Databases
| Resource | AWS service | Use it for |
|---|
| Relational database | RDS or Aurora | PostgreSQL, MySQL, MariaDB and other SQL engines |
| Aurora DSQL | Aurora DSQL | Serverless SQL that works like PostgreSQL, with IAM sign-in |
| DynamoDB | DynamoDB | Key-value and document data at any scale |
| Redis | ElastiCache | Caching, sessions, rate limits and pub/sub inside your VPC |
| Upstash Redis | Upstash (outside AWS) | Pay-per-request Redis for serverless apps |
| MongoDB Atlas | MongoDB Atlas (outside AWS) | Document data with a flexible schema |
| OpenSearch | OpenSearch Service | Full-text search and log analytics |
Storage
| Resource | AWS service | Use it for |
|---|
| S3 bucket | S3 | Files, uploads, backups and other objects |
| EFS file system | EFS | A shared file system that containers mount |
Networking
| Resource | AWS service | Use it for |
|---|
| HTTP API Gateway | API Gateway (HTTP API) | Pay-per-request HTTP routing to functions and containers |
| WebSocket API Gateway | API Gateway (WebSocket API) | Persistent client connections handled by functions |
| AppSync API | AppSync | A GraphQL API with Lambda resolvers |
| Application Load Balancer | Elastic Load Balancing (ALB) | HTTP routing by path, host or header. Billed per hour plus usage (LCUs) |
| Network Load Balancer | Elastic Load Balancing (NLB) | TCP and TLS traffic, such as gRPC or MQTT |
| CDN | CloudFront | Caching in front of a bucket, API, load balancer or function |
| Custom domains | Route 53 and ACM | Serving a resource at your own domain |
Messaging
| Resource | AWS service | Use it for |
|---|
| SQS queue | SQS | Queuing work between services |
| SNS topic | SNS | Sending one message to many subscribers |
| Event bus | EventBridge | Routing events to targets by pattern |
| Kinesis stream | Kinesis Data Streams | Ordered, replayable streams of records |
| Kafka cluster | MSK Serverless | Kafka topics for producers and consumers |
| Email sender | SES | Sending email from a verified domain or address |
Triggers
Triggers are not resources of their own. You add them to a Lambda function, and some also to a batch job or a container, so it runs when something happens. Triggers overview compares them.
Orchestration
| Resource | AWS service | Use it for |
|---|
| State machine | Step Functions | Multi-step workflows with branches, retries and parallel steps |
Security
AgentCore
Advanced
What else goes in a stack
Uptime checks and synthetic tests are configured in the stack too, and alarms are set on the resource they watch. Their pages are under Observability.
What resources cost
Always-on resources bill by the hour even with no traffic. These include web, private and worker services, multi-container workloads, relational databases, Redis, OpenSearch, load balancers, Kafka clusters, bastion hosts and Convex. Most other resources bill per request, per message or per GB stored. Each resource page has a pricing note, and Managing costs explains how to track the bill.