Kết nối Windows instance

Kết nối Windows instance

  1. Truy cập Amazon EC2 console.
  • Trên thanh điều hướng bên trái, chọn Intances.
  • Chọn DevAxWindowsHost.
  • Click Connect. Connect to the Windows Instance
  1. Tại trang Connect to instance
  • Click tab RDP client.
  • Click Download remote desktop file. Chúng ta sẽ download file remote desktop xuống đường dẫn thư mục chứa key pair.
  • Click Get password. Connect to the Windows Instance
  1. Tại trang Get Windows password:
  • Click Browse.
  • Chọn file KPforDevAxInstances.pem đã tải về trong phần 2.1.
  • Click Decrypt Password để giải mã thông tin password. Connect to the Windows Instance
  1. Copy password đã được giải mã. Connect to the Windows Instance
  2. Mở file DevAxWindowsHost.rdp bạn đã tải về trong bước 2.
  • Click Connect. Connect to the Windows Instance
  1. Điền thông tin password đã copy trong bước 4
  • Click OK. Connect to the Windows Instance
  1. Click Don’t ask me again for connections to this computer.
  • Click Yes. Connect to the Windows Instance
  1. Bạn đã kết nối thành công. Connect to the Windows Instance

Cấu hình AWS CLI

  1. Gán quyền Administrator Access vào user awsstudent được tạo bởi Cloud Formation template
  1. Trong phần Permissions policies
  • Click Add permissions Connect to the Windows Instance
  1. Trong trang Add permissions to awsstudent
  • Click Attach existing policies directly
  • AdministratorAccess vào ô tìm kiếm.
  • Chọn AdministratorAccess
  • Click Next:Review Connect to the Windows Instance
  1. Click Add Permission Connect to the Windows Instance
  2. Click tab Security credentials
  • Click Create access key để tiến hành tạo access key Connect to the Windows Instance
  1. Lưu thông tin Access keySecret access key để phục vụ cho bước tiếp theo Connect to the Windows Instance
  2. Chạy lệnh dưới đây
aws configure set profile.aws-lab-env.region <YOUR_REGION>
aws configure set profile.aws-lab-env.aws_access_key_id <YOUR_ACCESS_KEY_ID>
aws configure set profile.aws-lab-env.aws_secret_access_key <YOUR_SECRET_ACCESS_KEY>
git config --global user.email <YOUR_EMAIL>
git config --global user.name awsstudent

Thay <your_region> bằng Region code
Thay <access_key_id> bằng Access Key Id bạn đã lưu về trong bước 6
Thay <secret_access_key> bằng Secret Access Key bạn đã lưu về trong bước 6

Connect to the Windows Instance