hashicorp / terraform-cdk

Define infrastructure resources using programming constructs and provision them using HashiCorp Terraform
https://www.terraform.io/cdktf
Mozilla Public License 2.0
4.79k stars 442 forks source link

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

Open neilkuan opened 3 years ago

neilkuan commented 3 years ago

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

pahud commented 3 years ago

What about L2s like:

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

skorfmann commented 3 years ago

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?

ansgarm commented 2 years ago

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 👀