Tạo một pipeline

Tạo một CI/CD pipeline với CodePipeline

  1. Chúng ta sẽ tạo CodePipeline sử dụng công cụ AWS CloudFormation.

Create Code Pipeline

  1. Trong giao diện AWS Console
  • Tìm CloudFormation
  • Chọn CloudFormation

Create Code Pipeline

  1. Trong giao diện CloudFormation
  • Chọn Stacks
  • Chọn Create stack
  • Chọn With new resources (standard)

Create Code Pipeline

  1. Trong giao diện Create stack
  • Chọn Template is ready
  • Chọn Upload a template file
  • Chọn Choose file
  • Chọn CloudFormation template file đã tải về. Ví dụ code_pipeline_fcj.yml
  • Chọn Next

Create Code Pipeline

  1. Phần Stack name, nhập Eks-stack

Create Code Pipeline

  1. Tiếp theo, điền thông tin các mục sau:
  • User name, nhập tên Github Account
  • Nhập Access token đã tạo
  • Nhập tên Repository
  • Nhập Branch
  • Nhập tên EksCluster
  • Nhập EksDeployment
  • Nhập EksNamespace
  • Chọn Next

Create Code Pipeline

  1. Kéo xuống cuối trang và chọn Next

Create Code Pipeline

  1. Kéo xuống cuối trang và chọn Create stack

Create Code Pipeline

  1. Hoàn thành tạo stack

Create Code Pipeline

  1. Trong giao diện AWS Console
  • Tìm CodePipeline
  • Chọn CodePipeline

Create Code Pipeline

  1. Quá trình CI/CD

Create Code Pipeline

  1. Quá trình CI/CD hoàn thành khi chuyển sang trang thái Succeeded

Create Code Pipeline