TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What's better Terraform or AWS CDK?

9 点作者 Kalpeshbhalekar大约 1 年前
If one is not planning to go multi-cloud, is CDK a better decision?

10 条评论

mousetree大约 1 年前
We&#x27;ve been using CDK for Terraform[1] for a year or two for both AWS and GCP. It&#x27;s working great. We especially like that it supports Typescript.<p>[1] <a href="https:&#x2F;&#x2F;developer.hashicorp.com&#x2F;terraform&#x2F;cdktf" rel="nofollow">https:&#x2F;&#x2F;developer.hashicorp.com&#x2F;terraform&#x2F;cdktf</a>
speedgoose大约 1 年前
<a href="https:&#x2F;&#x2F;opentofu.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;opentofu.org&#x2F;</a> is better than terraform, as it’s a fork that happened before terraform became not open source.
评论 #40014683 未加载
andrewfromx大约 1 年前
<a href="https:&#x2F;&#x2F;www.pulumi.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.pulumi.com&#x2F;</a>
评论 #40000758 未加载
Sevii大约 1 年前
Terraform and the CDK use different programming models to achieve similar goals. The CDK takes a more dynamic scripting approach much like Gradle, while Terraform is more descriptive and declarative. Functionally, I think they have similar capabilities.
JojoFatsani大约 1 年前
If you plan on making your devs do all your infra work, maybe CDK would be better. But you will eventually regret not having TF and its huge ecosystem of modules and integrations.
ldjkfkdsjnv大约 1 年前
CDK is far better if you are only on AWS and need advanced cloud setups.
gabriel_dev大约 1 年前
I guess the vendor lock issue is not as harsh if using Terraform
noop_joe大约 1 年前
It might not matter _that much_ depending on the complexity of the application you&#x27;re modeling.<p>There are lots of options. A few things to consider:<p>- Is it a dedicated individual or group responsible for the IaC? What are they comfortable with? - Details about the running app will need to find their way into the infra somehow (env vars at least), if it&#x27;s a separate group or individual, what will be the most obvious process to perform that exchange of information?<p>I wrote a short piece about point two [1]. Disclosure: I work at a company building a platform with its own opinionated IaC.<p>1. <a href="https:&#x2F;&#x2F;noop.dev&#x2F;blog&#x2F;build-apps-not-infrastructure&#x2F;" rel="nofollow">https:&#x2F;&#x2F;noop.dev&#x2F;blog&#x2F;build-apps-not-infrastructure&#x2F;</a>
dakiol大约 1 年前
Ansible
uaas大约 1 年前
CloudFormation