# Moving Beyond Terraform CDK: Encore's Infrastructure-from-Code Approach

DevFeed: [Moving Beyond Terraform CDK: Encore's Infrastructure-from-Code Approach](<https://devfeed.tech/articles/moving-on-from-terraform-cdk-17848.md>)

Original publisher: [Read original article](<https://encore.dev/blog/terraform-cdk-alternative>)

Author: Ivan Cernja

Published: 2025-12-11T00:00:00Z

Content type: comparison

Language: en

Sources: [Encore Updates](<https://devfeed.tech/sources/encore-updates.md>)

Topics: [Terraform](<https://devfeed.tech/topics/terraform.md>), [Code](<https://devfeed.tech/topics/code.md>), [Amazon Web Services](<https://devfeed.tech/topics/aws.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Self-hosted](<https://devfeed.tech/topics/self-hosted.md>), [Database](<https://devfeed.tech/topics/database.md>)

Tags: [aws](<https://devfeed.tech/tags/aws.md>), [code](<https://devfeed.tech/tags/code.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [gcp](<https://devfeed.tech/tags/gcp.md>), [high-availability](<https://devfeed.tech/tags/high-availability.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [least-privilege](<https://devfeed.tech/tags/least-privilege.md>), [postgresql](<https://devfeed.tech/tags/postgresql.md>), [security](<https://devfeed.tech/tags/security.md>), [self-hosting](<https://devfeed.tech/tags/self-hosting.md>), [terraform](<https://devfeed.tech/tags/terraform.md>)

## AI overview

The article discusses Terraform CDK's sunset and explains Encore's infrastructure-from-code approach. Encore embeds infrastructure declarations in application code, provisions resources through AWS or GCP APIs, and supports Docker-based self-hosting.

## Source excerpt

How infrastructure-from-code works when infrastructure declarations are part of your application