Building on AWS with Cursor — Cursor Blog | Neura Market
    Neura MarketNeura Market/Cursor
    ChatGPTChatGPTClaudeClaudeGeminiGeminiCursorCursorGrokGrokPerplexityPerplexityDeepSeekDeepSeek
    CoPilotCoPilotStable DiffusionStable DiffusionMidjourneyMidjourney
    View All Directories
    OverviewRulesPromptsMCPsAgentsBlogVideosGuidesCoursesCommunityExtensionsTrendingGenerate
    CursorBlogBuilding on AWS with Cursor
    Back to Blog
    Building on AWS with Cursor
    aws

    Building on AWS with Cursor

    Ivan Cernja December 12, 2025
    0 views

    Cursor is getting pretty good at writing backend code. It can generate API endpoints, database...

    [Cursor](https://cursor.com) is getting pretty good at writing backend code. It can generate API endpoints, database queries, authentication logic - the standard stuff you'd write in TypeScript or Go. With [Encore](https://encore.cloud), the code Cursor generates is also the infrastructure, in your AWS account. When Cursor writes `new SQLDatabase("users")`, that's both application code and infrastructure code. Locally it provisions a [PostgreSQL database](https://encore.dev/docs/ts/primitives/databases) for development. Deployed to AWS, it provisions RDS with backups, high availability, and security configured. Local and production environments are 1:1 - the same code generates both. <video autoPlay loop muted playsInline width="100%"> <source src="https://encore.dev/assets/blog/cursor-ai-gen.mp4" type="video/mp4" /> </video> Here's a real example of what Cursor might generate: ```typescript import { SQLDatabase } from "encore.dev/storage/sqldb"; import { api } from "encore.dev/api"; const db = new SQLDatabase("users", { migrations: "./migrations", }); interface User { id: number; email: string; name: string; } export const createUser = api( { method: "POST", path: "/users", auth: true }, async ({ email, name }: { email: string; name: string }): Promise<User> => { await db.exec` INSERT INTO users (email, name) VALUES (${email}, ${name}) `; return await db.queryRow<User>` SELECT id, email, name FROM users WHERE email = ${email} `; } ); ``` This extends to other resources as well. [Pub/Sub](https://encore.dev/docs/ts/primitives/pubsub) topics provision SNS and SQS. [Object storage](https://encore.dev/docs/ts/primitives/object-storage) buckets become S3. Secrets get stored in AWS Secrets Manager. Cursor writes TypeScript declarations, Encore provisions the corresponding AWS resources. ```typescript // Pub/Sub → SNS + SQS const orders = new Topic<Order>("orders", { deliveryGuarantee: "at-least-once" }); // Object storage → S3 const uploads = new Bucket("user-uploads"); // Secrets → AWS Secrets Manager const stripeKey = secret("StripeSecretKey"); ``` Encore analyzes the application code to understand the architecture - which services exist, what databases they use, how they communicate - and generates the corresponding infrastructure. Sounds like a lot, but it's worth reading more about [how it works](https://encore.dev/docs/introduction). This is different from having [Cursor](https://cursor.com) write [Terraform](https://www.terraform.io/) or [Pulumi](https://www.pulumi.com/). Those tools let you define infrastructure explicitly, which means Cursor would need to generate proper Terraform configurations, understand [AWS](https://aws.amazon.com/) resource dependencies, and manage state correctly. AI-generated infrastructure code risks hallucinations that create security vulnerabilities, resource misconfigurations, and version conflicts - meaning you need to carefully review thousands of lines of generated IaC before deploying. Encore doesn't use AI to generate any infrastructure code. Instead, it parses the infrastructure declarations in your application code and creates a graph of the required underlying resources. It then integrates directly with your cloud provider's APIs to programmatically provision and orchestrate the required resources, including fine-grained least-privilege IAM policies. With this approach, there's zero risk of AI hallucinations, drift, and related security issues. This deploys to your AWS account (or [GCP](https://encore.dev/docs/deploy/gcp)) as standard resources - VPC with networking across availability zones, ECS clusters, RDS databases, IAM roles, security groups. Everything appears in the AWS console for auditing, costs show up in AWS Cost Explorer, and compliance requirements map to infrastructure in your cloud. Infrastructure changes require approval before provisioning: <video autoPlay loop muted playsInline width="100%" className="mt-6 mb-2"> <source src="https://encore.dev/assets/blog/gcp-provision.mp4" type="video/mp4" /> </video> <p className="text-sm text-gray-600 dark:text-gray-400 text-center mb-6">Infrastructure approval flow in Encore Cloud (shown with GCP)</p> This setup already enables companies like [Groupon](https://encore.cloud/customers/groupon) to develop new features faster in their AWS organization, and [Pave Bank](https://encore.cloud/customers/pave-bank) to run a licensed bank in their own GCP account. > With Encore, we've seen a 2-3x increase in development speed and 90% shorter project lead times. What used to take days or weeks of back-and-forth is now automated and completed in minutes. - Josef Sima, Engineering Director at Groupon [Read the full Groupon story →](https://encore.cloud/customers/groupon) If you want to try it: ```bash # macOS brew install encoredev/tap/encore # Linux curl -L https://encore.dev/install.sh | bash # Windows iwr https://encore.dev/install.ps1 | iex ``` Then create an app: ```bash encore app create hello-world --example=ts/hello-world --editor cursor ``` And try prompting Cursor to create a file upload service that uses object storage: ``` Create a file upload API that stores files in a bucket with a 100MB size limit ``` Encore works entirely locally if you prefer not to use AWS. Everything runs on your machine with the same 1:1 local-to-production experience. You can also [self-host](https://encore.dev/docs/deploy/self-host) or use the [open-source framework](https://github.com/encoredev/encore) without any cloud platform.

    Tags

    awscursoraijavascript

    Comments

    More Blog

    View all
    Cursor vs Claude Code in 2026: Which AI Coding Tool Actually Makes You Faster?claudecode

    Cursor vs Claude Code in 2026: Which AI Coding Tool Actually Makes You Faster?

    I've spent the last three months shipping production code with both Cursor and Claude Code. Not toy...

    A
    Atlas Whoff
    The 5 MCPs that actually changed how I use Cursor and Claude Codeai

    The 5 MCPs that actually changed how I use Cursor and Claude Code

    I've been testing MCPs heavily in Cursor and Claude Code. Here are the 5 that actually changed how I...

    V
    vdalhambra
    AI-Powered Development 2026: Beyond Basic Code Generationaicoding

    AI-Powered Development 2026: Beyond Basic Code Generation

    AI-Powered Development 2026: Beyond Basic Code Generation How AI assistants have evolved...

    L
    lufumeiying
    Cursor AI vs GitHub Copilot: Developer Comparison 2025microsoft

    Cursor AI vs GitHub Copilot: Developer Comparison 2025

    Cursor AI vs GitHub Copilot: Developer Comparison 2025 The AI-Powered Code Completion...

    I
    Icarax
    How to Build 3D & AR Apps with AI — Cursor, Windsurf, Claude Codeai

    How to Build 3D & AR Apps with AI — Cursor, Windsurf, Claude Code

    AI coding assistants are great at generating UI code. But ask them to build a 3D scene or an AR...

    T
    Thomas Gorisse
    AI Coding Market Share 2026: Who's Winning?aitools

    AI Coding Market Share 2026: Who's Winning?

    Claude Code holds 54% of the AI coding market. Cursor hit $2B ARR. Copilot leads enterprise. Here's what the 2026 numbers actually mean.

    J
    Jangwook Kim

    Stay up to date

    Get the latest Cursor prompts, rules, and resources delivered to your inbox weekly.

    Neura Market LogoNeura Market

    Discover the best AI prompts, plugins, and resources for Cursor and more.

    Content Types

    • Rules
    • Prompts
    • MCPs
    • Agents
    • Guides

    Platforms

    • ChatGPT Directory
    • Claude Directory
    • Gemini Directory
    • Cursor Directory
    • Grok Directory
    • Perplexity Directory
    • DeepSeek Directory
    • CoPilot Directory
    • Stable Diffusion Directory
    • Midjourney Directory
    • All Directories

    Resources

    • Blog
    • Documentation
    • Help Center
    • Marketplace

    Legal

    • Privacy Policy
    • Terms of Service

    © 2026 Neura Market. All rights reserved.

    |

    Not affiliated with any AI platform vendors.