Skip to content
Skip to content

How Flightdeck works

A deep technical look at how Flightdeck takes your code from repository to production infrastructure, autonomously.

Architecture overview

Developer writes code
Pushes to GitHub
Flightdeck agent receives deploy command
Analyzes codebase
Generates Terraform
Applies to your cloud
Monitors & maintains

Flightdeck is an MCP server that any AI coding tool can invoke. The entire pipeline is autonomous.

Step 1

Codebase analysis

Flightdeck reads your codebase and understands what infrastructure you need. It detects frameworks (Next.js, Django, Rails, Express, Go), databases (PostgreSQL, MySQL, MongoDB), caches (Redis, Memcached), message queues (SQS, RabbitMQ), background job patterns, cron schedules, and static asset configurations.

No configuration files. No questionnaires. Flightdeck analyzes your package.json, requirements.txt, Dockerfile, and source code to build a complete dependency graph.

analysis output

Analyzing codebase...

✓ Framework: Next.js 14 (App Router)

✓ Database: PostgreSQL (via Prisma ORM)

✓ Cache: Redis (sessions + rate limiting)

✓ Background jobs: Bull queue (3 workers)

✓ Static assets: S3 + CloudFront CDN

✓ Cron: Daily report generation (02:00 UTC)

Step 2

Infrastructure planning

Based on the analysis, Flightdeck generates a complete infrastructure plan. This includes compute (ECS Fargate, Cloud Run, AKS), networking (VPC, subnets, security groups, load balancers), storage (RDS, ElastiCache, S3), security (IAM least-privilege, KMS encryption), and monitoring (CloudWatch, PagerDuty alerts).

The plan shows estimated monthly cost before anything is deployed. All infrastructure follows the AWS Well-Architected Framework, GCP best practices, or Azure architecture guidelines.

Step 3

Terraform generation

Flightdeck writes production-grade Terraform and commits it to your repository. This isn't abstract configuration — it's standard HCL that any engineer can read, audit, modify, and extend.

infra/main.tf
resource "aws_ecs_service" "app" {
name            = "my-app-production"
cluster         = aws_ecs_cluster.main.id
task_definition = aws_ecs_task_definition.app.arn
desired_count   = 2
launch_type     = "FARGATE"
deployment_circuit_breaker {
enable   = true
rollback = true
}
}

Generated patterns include: VPC with public/private subnets, NAT gateways, IAM roles with least-privilege policies, security groups, auto-scaling policies, health checks, CloudWatch dashboards, and alerting rules.

Step 4

Deployment pipeline

Flightdeck deploys to your cloud account through a safe, staged process:

  1. 1.Staging deployment — Infrastructure is provisioned and the application is deployed to a staging environment.
  2. 2.Health checks — HTTP health checks, database connectivity, and dependency validation are run.
  3. 3.Canary rollout — Traffic is shifted gradually: 10% → 25% → 50% → 100%. Error rates and latency are monitored at each step.
  4. 4.Automatic rollback — If error rate exceeds thresholds or latency spikes, traffic is immediately shifted back to the previous stable version.
Step 5

Ongoing management

After deployment, Flightdeck continuously monitors and maintains your infrastructure:

Drift detection

Detects when infrastructure state diverges from Terraform and alerts or auto-remediates.

Cost optimization

Identifies oversized instances, idle resources, and reserved capacity opportunities.

Dependency updates

Monitors for security patches and runtime updates, applies them safely.

Anomaly detection

Tracks error rates, latency, and resource utilization. Alerts on abnormal patterns.

Security model

Security is built into every layer of Flightdeck's architecture.

No stored credentials

Flightdeck uses temporary STS tokens and workload identity federation. Your cloud credentials are never stored.

Encrypted state

Terraform state is encrypted in your own S3/GCS bucket. All communication over TLS.

Full audit trail

Every action is logged and traceable. SOC 2 aligned practices from day one.

See it in action

Deploy your first application in under 5 minutes. No credit card required.

Get started free
How It Works — Flightdeck