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

Investigate cdktf #99

Open
tiagob opened this issue Jul 29, 2020 · 3 comments
Open

Investigate cdktf #99

tiagob opened this issue Jul 29, 2020 · 3 comments
Assignees

Comments

@tiagob
Copy link
Owner

tiagob commented Jul 29, 2020

https://learn.hashicorp.com/terraform/cdktf/cdktf-build-ts
https://github.com/hashicorp/terraform-cdk

Advantages are:

  • Terraform has a much larger user base than Pulumi and is the goto for IAC
  • Terraform doesn't require an account

Terraform providers are supported via an HCL to TS generator. So Auth0 etc. should work
https://www.terraform.io/docs/providers/auth0/index.html

Open questions

Auth0 dependency for building web and thus s3 files

Custom provider. Requires golang (more complicated than Pulumi)
https://learn.hashicorp.com/terraform/providers/setup-implement-read

Different stacks. Isn't supported yet IDEAL SOLUTION
hashicorp/terraform-cdk#35
hashicorp/terraform-cdk#34

Cloud invalidation

A module to handle via SQS and a lambda function. Overly complicated
https://github.com/dirt-simple/terraform-aws-cloudfront-invalidation

Wrap the script around another script to do the invalidation (better but not great) LIKELY SOLUTION
https://stackoverflow.com/questions/56835557/aws-cdk-post-deployment-actions

Custom provider. Requires golang (more complicated than Pulumi)
https://learn.hashicorp.com/terraform/providers/setup-implement-read

@tiagob tiagob self-assigned this Jul 29, 2020
@tiagob
Copy link
Owner Author

tiagob commented Jul 29, 2020

Punting for now since cdktf is very early.

main.ts is required in cdktf. Can't use index.ts or build/index.ts. Should be read from package.json main
Included tsconfig.json (in cdktf init) doesn’t work with yarn workspaces with expo react-native

@tiagob
Copy link
Owner Author

tiagob commented Jul 29, 2020

@guilatrova
Copy link

Hi Tiago, just sharing that I appreciated the investigation you did on this issue, and it was helpful for me to decide skipping using CDK for now.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants