Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

equivalent of aws cdk patterns #390

Closed
saxenark opened this issue Sep 28, 2020 · 3 comments
Closed

equivalent of aws cdk patterns #390

saxenark opened this issue Sep 28, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@saxenark
Copy link

Hi,

I am having difficulty in understanding whether to use aws cdk or terraform cdktf. From my work so far, it appears to me that aws cdk has more robust patterns and constructs which will comply with the well architected framework, all available out of the box. Terraform cdktf will require hand crafting many of such constructs and patterns.

An example in point is the construct ecs_patterns.ApplicationLoadBalancedEc2Service which does a lot of heavy lifting in spinning up a industrial strength infrastructure for EC2 based ECS service. I can't find the equivalent of that in Terraform cdktf and it appears I will have to manually assemble and connect all the infra elements.

However, Terraform apparently has the advantage of working with several different cloud vendors, and therefore I want to do due diligence before choosing one of the other. Is such a feature planned for cdktf?

Thanks

@saxenark saxenark added the enhancement New feature or request label Sep 28, 2020
@skorfmann
Copy link
Contributor

The Terraform CDK generates a 1:1 mapping for the Terraform provider schema. Some of the Terraform providers provide a few abstractions over the raw SDKs / APIs already which you therefore can use with the Terraform CDK as well. However, in CDK terms we're generating Level 1 constructs. Compared to the AWS CDK we don't provide further abstractions (Level 2 / 3) at the moment. There are plenty of community driven Terraform modules which you could use, though.

Perhaps there will be a few community driven abstractions for parts of certain providers, but building fully featured abstractions for a provider is significant effort. When looking at the AWS CDK, they're almost 3 years into the project and still haven't covered 100% of the Cloudformation resources when it comes to Level 2 / 3 constructs.

There are vague plans to build a bridge between AWS CDK and Terraform CDK, which would enable the usage of the handcrafted abstractions from each other. However, that's nothing which I'd expect to be fully working anytime soon.

@skorfmann
Copy link
Contributor

We do have various examples and will work on having more documentation in the future. There are no immediate plans for anything beyond that, but welcome contributions :)

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants