docs/platform/ai-integration.md
Encore Cloud supercharges AI-powered development by letting AI agents provision real infrastructure in your AWS or GCP account with automatic guardrails.
When you connect your cloud account to Encore Cloud, AI-generated code that declares databases, pub/sub topics, cron jobs, and other primitives gets automatically provisioned with production-ready defaults: proper networking, IAM permissions, and security configurations.
<video autoPlay playsInline loop controls muted className="w-full h-full"> <source src="/assets/docs/aws-demo.mp4" type="video/mp4" /> </video>This enables fast iterative development: AI generates code, you push it and validate in preview environments, then deploy seamlessly with automatic infrastructure provisioning.
When AI declares infrastructure using Encore primitives, Encore Cloud provisions it in your cloud with automatic guardrails:
AI doesn't need to know the intricacies of AWS or GCP. It just declares what it needs, and Encore Cloud handles the cloud-specific configuration.
You stay in control: review infrastructure changes in pull requests, approve or deny resource additions, and use infrastructure configuration to customize defaults per environment.
Preview environments are perfect for testing AI-generated changes. Each pull request gets its own isolated environment with real infrastructure.
This means you can:
Encore Cloud provides distributed tracing and metrics across all your environments. You can:
To deploy your Encore app to your cloud:
Encore Cloud provisions infrastructure in your cloud account based on the primitives declared in your code. You maintain full control and ownership of your infrastructure.
With Encore Cloud connected, AI-generated code can provision:
| Resource | AWS | GCP |
|---|---|---|
| Databases | RDS (PostgreSQL) | Cloud SQL |
| Pub/Sub | SNS + SQS | Cloud Pub/Sub |
| Object Storage | S3 | Cloud Storage |
| Cron Jobs | CloudWatch Events | Cloud Scheduler |
| Secrets | Secrets Manager | Secret Manager |
| Caching | ElastiCache | Memorystore |
All resources are provisioned with security best practices like least-privilege IAM policies, private networking, and encryption. See the AWS and GCP infrastructure docs for specifics.