Tạo VPC và EC2 Instance

Tạo VPC

  1. Truy cập AWS Management Console

    • Tìm VPC
    • Chọn Create VPC

Create Workspace

  1. Trong giao diện VPC settings

    • Resources to create, chọn VPC and more
    • Name tag auto-generation, nhập EKS Blueprint VPC
    • IPv4 CIDR block, nhập 10.0.0.0/16

Create Workspace

  1. Chọn các AZs
    • Chọn các AZs theo hình và bấm chọn Create VPC

Create Workspace

  1. Sau khi tạo xong, chúng ta sẽ có một VPC như thế này Create Workspace Create Workspace

Tạo EC2 Instance

  1. Truy cập AWS Management Console

    • Tìm EC2
    • Chọn Launch Instance

Create Workspace

  1. Trong giao diện Launch an instance

    • Name and tags, chọn EKS Blueprint Instance

Create Workspace

  1. Ở mục Application and OS Images (Amazon Machine Image)

    • Chọn Amazon Linux 2023 AMI

Create Workspace

  1. Ở mục Instance type và Key pair

    • Chọn t3.small
    • Tạo ra 1 key pair đặt tên là kp-eks-blueprint Create Workspace
  2. Ở mục Network settings

    • Chọn VPC mà bạn mới tạo
    • Chọn public-subnet-1
    • Bật Auto-assign public IP
    • Tạo một Security Group

Create Workspace

  1. Ở mục Configure storage thay đổi bộ nhớ thành 30GB va nhấn Launch Instance

Create Workspace

  1. Vậy là chúng ta đã hoàn thành việc khởi tạo EC2 Instance.

Create Workspace