Tạo Repository mới trên CodeCommit

Tạo Repository mới trên CodeCommit

  1. Tạo CodeCommit credential trong Security Credentials trong tài khoản AWS của bạn

ROSA

  1. Hoàn thành tạo CodeCommit credential trong Security Credentials trong tài khoản AWS của bạn

ROSA

  1. Tạo repository mới trên CodeCommit, sử dụng tài khoản đã tạo ở bước trước để clone, sửa đổi và push

    • Truy cập vào CodeCommit
    • Chọn Create repository

ROSA

  1. Trong giao diện Create repository

    • Nhập rosa-voting-app
    • Chọn Create

ROSA

  1. Chuyển code từ repo github ‣ sang repo CodeCommit và push thay đổi lên repo CodeCommit

    • Kiểm tra file buildspec.yml và thay bằng nội dung sau:
version: 0.2

phases:
  pre_build:
    commands:
      - echo Hello World
      - echo Testing codebuild flow
  post_build:
    commands:
      - echo Test successful!
  • Sau đó thực hiện push code lên.
git add .
git commit -m "rosa-voting-app"
git remote set-url origin [URL Repository CodeCommit]
git push origin master

ROSA

  1. Nhập thông tin xác thực đã tạo và hoàn thành push code.

ROSA

  1. Xem lại code đã push.

ROSA