terraform-cdk icon indicating copy to clipboard operation
terraform-cdk copied to clipboard

Start to build L2 library like @cdktf/aws @cdktf/azure @cdktf/gcloud ??

Open neilkuan opened this issue 4 years ago • 4 comments

Community Note

Start to build L2 library like @cdktf/aws @cdktf/azure @cdktf/gcloud ??

Description

I think is time to build L2 library let cdktf more powerful.

References


This is 🚀 Feature Request

neilkuan avatar Jan 06 '21 08:01 neilkuan

What about L2s like:

  • @cdktf/aws-ec2
  • @cdktf/aws-eks
  • @cdktf/aws-ecs

And then we have L2s for cdktf out-of-the-box. Any plans about this?

pahud avatar Jan 06 '21 08:01 pahud

L2 / L3 constructs are certainly something which is on our radar. In the context of AWS, I still would love to somehow leverage what has been built for the AWS CDK already. There are a few ideas floating around how to make this happen, but none of them is really straightforward. There's another issue for AWS CDK compatibility as well - see https://github.com/hashicorp/terraform-cdk/issues/244

There are no immediate plans to start tackling this. However, generally speaking I think this is the topic which will have the biggest impact.

@guan840912 / @pahud Out of curiosity: how would you approach this?

skorfmann avatar Jan 08 '21 13:01 skorfmann

Note for everyone stumbling on this issue: Alongside CDKTF 0.7 we released a first technical preview of the AwsTerraformAdapter (docs, repo) which enables you to use AWS CDK constructs with the CDK for Terraform. It is currently TypeScript only (issue) and comes with limitations. Have a look at the examples or docs if you're interested 👀

ansgarm avatar Dec 07 '21 13:12 ansgarm

This is late, but check out https://terraconstructs.dev

vincenthsh avatar Sep 05 '25 09:09 vincenthsh