简体   繁体   English

AWS CDK-访问新功能

[英]AWS CDK - access to the new features

AWS CDK being a relatively new tool might have some missing high level constructs (such as NACL as the time of writing this question - https://github.com/aws/aws-cdk/issues/3621 ). AWS CDK是一个相对较新的工具,可能缺少一些高级结构(例如,编写本问题时,例如NACL- https://github.com/aws/aws-cdk/issues/3621 )。

My understanding is that AWS CDK is developed using Typescript. 我的理解是AWS CDK是使用Typescript开发的。

Would selecting Typescript as the IaC language give faster access (compared to python, other) to the newly available constructs? 选择Typescript作为IaC语​​言是否可以更快(与python等相比)访问新可用的结构?

Pre-release/Dev versions? 预发行/开发版本?

My understanding is that AWS CDK is developed using Typescript. 我的理解是AWS CDK是使用Typescript开发的。

That's correct, from https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html 没错,来自https://docs.aws.amazon.com/cdk/latest/guide/getting_started.html

Why do you need Node.js when you're a Python, C♯, or Java developer? 当您是Python,C♯或Java开发人员时,为什么需要Node.js?

The AWS CDK is developed in TypeScript and transpiled to JavaScript. AWS CDK是用TypeScript开发的,并已转换为JavaScript。 Bindings for the other supported languages make use of the AWS CDK engine running on Node.js, as does the cdk command-line tool. 其他受支持语言的绑定与cdk命令行工具一样,都使用在Node.js上运行的AWS CDK引擎。

Would selecting Typescript as the IaC language give faster access (compared to python, other) to the newly available constructs? 选择Typescript作为IaC语​​言是否可以更快(与python等相比)访问新可用的结构?

There would have to be a very good reason why a new feature is not exposed at the same time to all languages. 为什么没有同时向所有语言公开一项新功能将是一个很好的理由。 All we know is the bindings for the other languages use the CDK running on Node.js - so it looks like NodeJS would be first cab off the rank if any. 我们所知道的是,其他语言的绑定使用运行在Node.js上的CDK-因此,如果有的话,NodeJS似乎首当其冲。

CDK is released with all bindings at the same time. CDK将同时释放所有绑定。 So choosing one particular language won't provide any benefit. 因此,选择一种特定的语言不会带来任何好处。 There's one exception though: https://www.npmjs.com/package/@aws-cdk/assert 但是有一个例外: https : //www.npmjs.com/package/@aws-cdk/assert

The assert package is only available for Typescript as far as I know. 据我所知, assert包仅可用于Typescript。 I personally use Python and miss this package a lot . 我个人使用Python和错过这个包了很多 Unit testing CDK infrastructure is very ugly without native support. 没有本地支持,CDK基础结构的单元测试非常难看。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM