英文:
What is the difference between aws-codepipeline/Pipeline and pipelines/CodePipelines in AWS CDK
问题
我有一个AWS CDK项目,并正在使用CDK定义代码管道以自动部署它。
我应该使用在这里定义的CodePipeline:https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html
还是在这里定义的Pipeline:https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codepipeline.Pipeline.html
另外,这两者之间到底有什么区别?
编辑:我链接到了错误的Pipeline文档。我已更新链接。
英文:
I have an AWS CDK project and am defining a code pipeline with the CDK to automatically deploy it.
Should I use the CodePipeline defined here: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.pipelines.CodePipeline.html
or the Pipeline defined here: https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codepipeline.Pipeline.html
Also what exactly is the difference between the two?
Edit: I linked to the wrong doc for Pipeline. I've updated the link
答案1
得分: 2
aws-codepipeline.Pipeline
是用于 AWS CodePipeline 资源的 L2 构造。
pipelines.CodePipeline
是 CDK pipelines 模块的一部分,它是部署 CDK 应用程序的更高级抽象。在底层,它使用 aws-codepipeline.Pipeline
来进行流水线处理,但也有其他实现方式(例如,使用 GitHub Actions),因为 pipelines.CodePipeline
API 旨在成为抽象API(尽管命名有点不幸)。更多阅读:https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html
英文:
aws-codepipeline.Pipeline
is an L2 construct for the AWS CodePipeline resource.
pipelines.CodePipeline
is part of the CDK pipelines module that is a higher-level abstraction for deploying CDK apps. Under the hood, it uses aws-codepipeline.Pipeline
for its pipelines, but there are also other implementations (with GitHub Actions, for example), since the pipelines.CodePipeline
API was meant to be an abstract API (the naming is unfortunate, though). Further reading: https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论