Khởi tạo EC2 instance

  1. Khởi tạo EC2 instance.

    • Truy cập vào EC2
    • Chọn Instance
    • Chọn Launch instances

CodeDeploy

  1. Trong giao diện Launch an instance

    • Name and tags, nhập CodeDeployDemo
    • Chọn Quick Start
    • Chọn Amazon Linux

CodeDeploy

  1. Đối với Instance type chọn t3.medium

    • Chọn Create new key pair

CodeDeploy

  1. Đối với Key pair name, nhập awsstudygroup

    • Chọn Create key pair
    • Key pair này nên lưu trữ trên máy cẩn thận dùng để SSH vào EC2 instance.

CodeDeploy

  1. Thực hiện cấu hình network

    • VPC: default
    • Subnet: a subnet of VPC default (default is public subnet)
    • Auto-assign public IP: Enable
    • Firewall (security groups): Create security group:
    • SSH / Port 22 / Anywhere
    • HTTP / Port 80 / Anywhere

CodeDeploy

  1. Advanced details:
  • IAM instance profile: CodeDeployDemo-EC2-Instance-Profile

CodeDeploy

  1. Hoàn thành tạo EC2 instance.

CodeDeploy

  1. Kiểm tra chi tiết sau 3 phút khởi tạo EC2 instance.

CodeDeploy

  1. Kiểm tra Security của EC2 instance.

CodeDeploy