Create pipeline

Create the pipeline

  1. Open AWS CodePipeline console.

    • Click Pipelines on the left menu.
    • Click Create pipeline button. CreatePipeline
  2. At Step 1: Choose creation option page.

    • Choose Build custom pipeline at Category.
    • Then click Next button. CreatePipeline
  3. At Step 2: Choose pipeline settings page.

    • Enter FCAJBookStoreFEPipeline at Pipeline name.
    • Choose Queued at Execution mode.
    • Choose New service role at Service role.
    • Click the Next button. CreatePipeline
  4. At Step 3: Add source stage page.

    • Choose GitLab at Source provider. CreatePipeline
    • Choose FCAJBookStoreGitlabConnection at Connection. CreatePipeline
    • Enter <your-username>/fcaj-book-store-frontend at Repository name.
    • Enter master at Default branch. CreatePipeline
    • Scroll down and click the Next button. CreatePipeline
  5. At Step 4: Add build stage page.

    • Choose Other build providers at Build provider.
    • Choose the AWS CodeBuild.
    • Enter FCAJBookStoreBuildProject at Project name. CreatePipeline
    • Choose United States (N. Virginia) at Region.
    • Click the Next button. CreatePipeline
  6. At Step 5: Add test stage page.

    • Click the Skip test stage button. CreatePipeline
  7. At Step 6: Add deploy stage page.

    • Choose the Amazon S3 at Deploy provider.
    • Choose United States (N. Virginia) at Region.
    • Choose BuildArtifact at Input artifacts.
    • Enter fcaj-book-shop-by-tranvix at Bucket.
    • Check the Extract file before deploy.
    • Click the Next button. CreatePipeline
  8. At Step 7: Review page.

    • Scroll down and click the Create pipeline button. CreatePipeline

Test the pipeline

  1. At FCAJBookStoreFEPipeline page.

    • Wait for the pipeline to complete all stages: Source, Build, and Deploy. CreatePipeline
  2. Open Amazon S3 console.

    • Click General purpose buckets on the left menu.
    • Choose fcaj-book-shop-by-tranvix bucket. Preparation
    • At fcaj-book-shop-by-tranvix page, click the Properties tab.
    • You can see the files have been deployed to the S3 bucket. Preparation
    • Scroll down to Static website hosting section and copy the Bucket website endpoint url. Preparation
  3. Enter the copied link in a new tab in your web browser. Preparation