AWS CodeDeploy
AWS CodeDeploy
-
Truy cập vào AWS CodeDeploy

-
Trong giao diện Create application
- Đối với Application name, nhập AWS-FCJ-APP
- Đối với Compute platform, chúng ta sẽ chọn EC2/On-Premises

- Chúng ta sẽ tạo Deployment groups để thực hiện deployment ứng dụng.

-
Thực hiện cấu hình Deployment group
- Nhập Deployment group name
- Nhập Service role

-
Đối với Deployment type
- Chúng ta sẽ chọn In-place
- Đối với môi trường triển khai là Amazon EC2 instances
- Chọn theo tag group, chọn các key và value phù hợp với EC2 mà bạn muốn dùng triển khai ứng dụng.

-
Đối với cài đặt Install AWS CodeDeploy Agent
- Chúng ta sẽ chọn Nerver
- Đối với Deployment settings, chọn CodeDeployDefault.OneAtATime
- Chọn Create deployment group

- Hoàn thành tạo Deployment group

-
Chúng ta sẽ quay lại Applications
- Chọn ứng dụng đã chuẩn bị.
- Chọn Deploy application

-
Chúng ta sẽ cung cấp các thông tin Create deployment
- Sử dụng Deployment group
- Chọn Revision type
- Và đối với Revision location chọn dẫn của S3 bucket
- Dạng file sẽ là .zip

- Kiểm tra lại và chọn Create deployment

- Sau thời gian khoảng 5 phút.
- Chúng ta sẽ hoàn thành deployment.

- Chúng ta sẽ xem lịch sử triển khai.

- Truy cập vào ứng dụng qua DNS của EC2 thông qua port 5000.

Hãy nhớ truy cập đường dẫn với http chứ không phải https