1
votes

I am building an application using Lambda, DynamoDB, Cognito, etc.

I want to setup the CI/CD pipeline using AWS tools - AWS codePipeline.

I am using Gitlab for the code repository.

While setting up the build pipeline using Code Pipeline, I found that there is support for Github repositories, but there is No support for Gitlab repositories.

One possible way could, I can use of S3. So when a code is pushed to Gitlab repository, it will be uploaded to S3 bucket.

The codePipeline will trigger the build, execute the test cases and then perform the deployment (Creating lambda functions, API Gateway, DynamoDB tables, etc.)

Is there any better way to integrate CodePipeline with Gitlab?

2

2 Answers

1
votes

You need to get your code from the 3rd party unsupported Git Repo to S3 from where CodePipeline can take over. This blog [1] provides a way using API Gateway and Lambda to integrate any third party Git Repo with CodePipeline.

[1] https://aws.amazon.com/blogs/devops/integrating-git-with-aws-codepipeline/

0
votes

Third-party Git repositories as source for AWS CodePipeline

Kindly check out the above link for the third-party Git repositories as source for AWS CodePipeline