Skip to content

Resource catalog

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 toUse
Run an API or a web app in a container, with a public HTTPS URLWeb service
Run code on demand: an API handler, a webhook, a queue or schedule consumerLambda function
Run a background worker or queue consumer that stays onWorker service
Run an internal service that only your other resources can callPrivate service
Run a job to completion, with GPUs or a long run timeBatch job
Deploy a Next.js, Astro, Nuxt, SvelteKit, SolidStart, TanStack Start or Remix appThe framework page under Frontend
Host a static site or a single-page appStatic hosting
Store relational data in PostgreSQL or MySQLRelational database
Store key-value data without managing serversDynamoDB
Cache data or keep sessionsRedis, or Upstash Redis for Lambda-heavy apps
Store files and uploadsS3 bucket
Queue work between servicesSQS queue
Run code on a schedule, a file upload or a queue messageA trigger on a Lambda function
Send email from your appEmail sender
Sign users up and inUser authentication pool
Use an AWS service that has no resource hereRaw 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.

ResourceHow it runsCosts while idle
Web serviceAlways on, in containers, with a public HTTPS URLYes
Private serviceAlways on, in containers. Only resources in the stack can call it.Yes
Worker serviceAlways on, in containers, with no URL. It polls queues or runs loops.Yes
Multi-container workloadAlways on, several containers in one taskYes
Lambda functionPer event from a trigger, such as a request, a queue message or a schedule, for up to 15 minutesNo
Batch jobFrom a trigger until the job finishesNo
Edge functionPer CloudFront request or responseNo
ConvexAlways on, as a self-hosted Convex backendYes

Containers are packaged with container packaging and Lambda functions with function packaging.

All resources

Compute

ResourceAWS serviceUse it for
Web serviceECS on Fargate or EC2Public APIs and web apps in a container
Lambda functionLambdaCode that runs per event and scales to zero
Private serviceECS on Fargate or EC2Internal services reachable only inside the stack
Worker serviceECS on Fargate or EC2Background workers and queue consumers
Batch jobAWS BatchJobs that run to completion, with CPU, memory or GPU needs
Multi-container workloadECS on Fargate or EC2Containers that start together and share a network
Edge functionLambda@EdgeSmall request and response changes at the CDN
ConvexECS, RDS, S3 and a load balancerA self-hosted Convex backend

Frontend

ResourceAWS serviceUse it for
Static hostingS3 and CloudFrontStatic sites, single-page apps and pre-rendered builds
Next.jsLambda, S3 and CloudFrontNext.js with server rendering
AstroLambda, S3 and CloudFrontAstro with server-rendered routes
NuxtLambda, S3 and CloudFrontNuxt with server rendering
SvelteKitLambda, S3 and CloudFrontSvelteKit with server rendering
SolidStartLambda, S3 and CloudFrontSolidStart with server rendering
TanStack StartLambda, S3 and CloudFrontTanStack Start with server rendering
RemixLambda, S3 and CloudFrontRemix with server rendering

Databases

ResourceAWS serviceUse it for
Relational databaseRDS or AuroraPostgreSQL, MySQL, MariaDB and other SQL engines
Aurora DSQLAurora DSQLServerless SQL that works like PostgreSQL, with IAM sign-in
DynamoDBDynamoDBKey-value and document data at any scale
RedisElastiCacheCaching, sessions, rate limits and pub/sub inside your VPC
Upstash RedisUpstash (outside AWS)Pay-per-request Redis for serverless apps
MongoDB AtlasMongoDB Atlas (outside AWS)Document data with a flexible schema
OpenSearchOpenSearch ServiceFull-text search and log analytics

Storage

ResourceAWS serviceUse it for
S3 bucketS3Files, uploads, backups and other objects
EFS file systemEFSA shared file system that containers mount

Networking

ResourceAWS serviceUse it for
HTTP API GatewayAPI Gateway (HTTP API)Pay-per-request HTTP routing to functions and containers
WebSocket API GatewayAPI Gateway (WebSocket API)Persistent client connections handled by functions
AppSync APIAppSyncA GraphQL API with Lambda resolvers
Application Load BalancerElastic Load Balancing (ALB)HTTP routing by path, host or header. Billed per hour plus usage (LCUs)
Network Load BalancerElastic Load Balancing (NLB)TCP and TLS traffic, such as gRPC or MQTT
CDNCloudFrontCaching in front of a bucket, API, load balancer or function
Custom domainsRoute 53 and ACMServing a resource at your own domain

Messaging

ResourceAWS serviceUse it for
SQS queueSQSQueuing work between services
SNS topicSNSSending one message to many subscribers
Event busEventBridgeRouting events to targets by pattern
Kinesis streamKinesis Data StreamsOrdered, replayable streams of records
Kafka clusterMSK ServerlessKafka topics for producers and consumers
Email senderSESSending 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.

TriggerRuns your code when
HTTP triggersA request reaches an HTTP API Gateway or a load balancer
Schedule triggersA rate or cron schedule fires
SQS eventsMessages arrive in a queue
SNS eventsA message is published to a topic
S3 eventsObjects are created, deleted or restored in a bucket
DynamoDB streamsItems change in a table
Kinesis eventsRecords arrive in a stream
Kafka topic eventsRecords arrive in a Kafka topic
Event bus eventsAn event on a bus matches a pattern
CloudWatch LogsNew records appear in a log group
Alarms as triggersAn alarm goes into the ALARM state

Orchestration

ResourceAWS serviceUse it for
State machineStep FunctionsMulti-step workflows with branches, retries and parallel steps

Security

ResourceAWS serviceUse it for
User authentication poolCognitoSign-up, sign-in, MFA and social or enterprise login
Web application firewallWAFBlocking common attacks before they reach APIs and load balancers
Bastion hostEC2 with Systems ManagerReaching private databases and caches from your machine

AgentCore

ResourceAWS serviceUse it for
AgentCore RuntimeBedrock AgentCoreRunning an AI agent packaged as a container
AgentCore MemoryBedrock AgentCoreMemory an agent keeps across sessions
AgentCore GatewayBedrock AgentCoreLambda-backed tools behind one MCP endpoint
AgentCore BrowserBedrock AgentCoreA browser an agent can drive
AgentCore Code InterpreterBedrock AgentCoreA sandbox where an agent runs code

Advanced

ResourceAWS serviceUse it for
Deployment scriptsLambdaMigrations, seeding and cleanup run inside AWS during a deploy or delete
Custom resourcesLambdaProvisioning, with your own code, what AWS templates do not support
AWS CDK constructsAnyAdding an existing CDK construct to the stack
Raw CloudFormation resourcesAnyDeclaring any AWS resource directly

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.