-
Mở AWS CodePipeline console.
- Nhấp vào Pipelines trên menu bên trái.
- Nhấp vào nút Create pipeline.

-
Tại trang Step 1: Choose creation option.
- Chọn Build custom pipeline tại Category.
- Sau đó nhấp vào nút Next.

-
Tại trang Step 2: Choose pipeline settings.
- Nhập
FCAJBookStoreFEPipeline tại Pipeline name.
- Chọn Queued tại Execution mode.
- Chọn New service role tại Service role.
- Nhấp vào nút Next.

-
Tại trang Step 3: Add source stage.
- Chọn GitLab tại Source provider.

- Chọn FCAJBookStoreGitlabConnection tại Connection.

- Nhập
<your-username>/fcaj-book-store-frontend tại Repository name.
- Nhập
master tại Default branch.

- Cuộn xuống và nhấp vào nút Next.

-
Tại trang Step 4: Add build stage.
- Chọn Other build providers tại Build provider.
- Chọn AWS CodeBuild.
- Nhập
FCAJBookStoreBuildProject tại Project name.

- Chọn United States (N. Virginia) tại Region.
- Nhấp vào nút Next.

-
Tại trang Step 5: Add test stage.
- Nhấp vào nút Skip test stage.

-
Tại trang Step 6: Add deploy stage.
- Chọn Amazon S3 tại Deploy provider.
- Chọn United States (N. Virginia) tại Region.
- Chọn BuildArtifact tại Input artifacts.
- Nhập
fcaj-book-shop-by-tranvix tại Bucket.
- Chọn Extract file before deploy.
- Nhấp vào nút Next.

-
Tại trang Step 7: Review.
- Cuộn xuống và nhấp vào nút Create pipeline.
