简体   繁体   English

@aws-cdk/pipelines 和 @aws-cdk/aws-codepipeline 有什么区别?

[英]What is the difference between @aws-cdk/pipelines and @aws-cdk/aws-codepipeline?

These two packages seem to largely do the same thing?这两个包似乎在很大程度上做同样的事情? What is the intended difference between these two packages and also which should I be using?这两个包之间的预期区别是什么,我应该使用哪个?

Pipelines is the newer experimental library. Pipelines 是较新的实验库。 It has additional constructs like "SimpleSynth" and can do things like check the code for the pipeline and update the pipeline along with deploying your code/infrastructure.它具有诸如“SimpleSynth”之类的附加构造,并且可以执行诸如检查管道代码和更新管道以及部署代码/基础设施之类的操作。 It incorporates a lot of CodePipelineActions into the same constructs that create the stages - I suppose the idea is to remove a little of the customization to make it a bit easier to code (generally curs the number of instantiation in half of various constructs)它将许多 CodePipelineActions 合并到创建阶段的相同构造中 - 我想这个想法是删除一些自定义以使其更容易编码(通常在各种构造的一半中限制实例化数量)

In most cases, it's kinda overkill.在大多数情况下,这有点矫枉过正。 Plus until you and your team have a lot of Base knowledge of cdk it can be dangerous - thr self mutating aspect of your pipeline being able to update and mutate itself when you update your source (a thing that CICD likes) can mean if you make a mistake you can lock your app out of deploying.另外,除非您和您的团队对 cdk 有很多基础知识,否则它可能是危险的 - 通过管道的自我变异方面能够在更新源(CICD 喜欢的东西)时自行更新和变异,这可能意味着如果你做一个错误,您可以将您的应用程序锁定在部署之外。

Also it's still experimental - meaning they may break dependencies or invalidate older methods at any time.此外,它仍然是实验性的——这意味着它们可能随时破坏依赖关系或使旧方法无效。

I'd stick with CodePipeline and CodePipelineActions until you're very comfortable with using cdk and using it for a pipeline in general before experimenting with Pipelines (and generally any library that doesn't start with aws! Except Core most of those are experimental )我会坚持使用 CodePipeline 和 CodePipelineActions,直到您非常熟悉使用 cdk 并将其用于管道,然后再尝试使用 Pipelines(通常是任何不以 aws 开头的库!除了 Core 之外,大多数都是实验性的)

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

相关问题 如何将 aws-cdk typescript 堆栈 class 构造函数 function 中的定义提取到单独的文件中? - How to extract definitions inside aws-cdk typescript stack class constructor function into separate files? aws-cdk yarn synth -o /tmp/artifacts 返回错误 ENOENT:没有这样的文件或目录,打开 '/tmp/artifacts/manifest.json' - aws-cdk yarn synth -o /tmp/artifacts returning error ENOENT: no such file or directory, open '/tmp/artifacts/manifest.json' AWS CDK 中 app.synth() 的用途是什么? - What is the purpose of app.synth() in AWS CDK? AWS CDK 用户池授权者 - AWS CDK user pool authorizer 在 Typescript 中的 AWS CDK 应用程序中读取道具 - Reading props in a AWS CDK app in Typescript 在 AWS CDK 中使用 AWS SDK 的正确方法 - Correct way to use AWS SDK within AWS CDK 如何配置 AWS CDK 账户和区域以查找 VPC - How to configure AWS CDK Account and Region to look up a VPC 我们可以使用 GitLab 作为 AWS CDK 管道源代码的主机吗? - Can we use GitLab as host for source code with AWS CDK pipeline? 如何使用 AWS CDK 为带有别名的 Lambda 设置 EventBridge 规则目标 - How to use AWS CDK to set EventBridge Rule Target for Lambda with Alias 将不同的 Lambda 函数分配给 AWS CDK 堆栈中的阶段 - Assigning Different Lambda Functions to Stages in AWS CDK Stack
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM