我们可以使用 GitLab 作为 AWS CDK 管道源代码的宿主吗?

Can we use GitLab as host for source code with AWS CDK pipeline?

我在 GitLab(Lambda 函数)中有一个存储库,想使用 AWS CDK 管道 (https://aws.amazon.com/blogs/developer/cdk-pipelines-continuous-delivery-for-aws-cdk-applications) 来开发 CI/CD 管道。在 AWS CDK 文档中没有提到 Gitlab。如果有人能证实这一点,将不胜感激。

目前只有 Bitbucket、GitHub、GitHub 企业服务器操作受代码流水线的原生支持。 gitlab 需要自定义 lambda。 https://aws.amazon.com/quickstart/architecture/git-to-s3-using-webhooks/ 可以帮助你。

在实现 git 到 s3 逻辑后,您可以使用 s3 源操作

也许这个答案对你来说来得太晚了:

你能做什么:

目前支持这些提供商:

"GitHub;您也可以使用 CodeStar 或 AWS CodeCommit"

(https://docs.aws.amazon.com/cdk/v2/guide/cdk_pipeline.html)

您可以在 AWS CodeCommit 中设置一个空存储库,然后使用 GitLab 存储库镜像将更改复制到 AWS CodeCommit。

https://docs.gitlab.com/ee/user/project/repository/mirror/