Create CodePipeline with GitLab tag trigger

CodePipeline Design (Source -> Build → Deploy)

Build (CodeBuild)

  • Project: the project’s CodeBuild project (Source = CodePipeline)
  • Environment variables: as needed for this project’s build
  • Buildspec: use the repository’s existing buildspec.yml

CodePipeline Set up guidelines

  1. On choosing pipeline creation option section, choose Build custom pipeline. CI/CD overview placeholder
  2. In pipeline settings tab, specify the pipeline name and use default settings for the pipeline. CI/CD overview placeholder
  3. Turn on webhook events and add filter type of tags. Make sure to set the tag patterns of “v*”. CI/CD overview placeholder
  4. Add frontend/backend project using AWS CodeBuild in build stage. CI/CD overview placeholder
  5. For the deploy stage, choose Amazon ECS as deploy provider. Specify its cluster and service to deploy. Also make sure to fill in the image definition file form like the image. CI/CD overview placeholder
  6. Submit and then the pipeline is now created.