Tạo CloudTrail

Tạo CloudTrail

  1. Truy cập AWS Management Console

    • Tìm CloudTrail
    • Chọn CloudTrail

create cloudtrail

  1. Trong giao diện CloudTrail

    • Chọn Trails
    • Chọn Create trail

create cloudtrail

  1. Trong phần Choose trail attributes

    Bạn có thể tự đặt tên khác theo ý của các bạn nhé!

    • Trail name nhập kms-key-cloudtrail
    • Storage location chọn Use existing S3 bucket
    • Chọn Browse

create cloudtrail

  1. Bước tiếp theo

    • Chọn kms-key-s3-<account-id>-<region>-an
    • Ấn Choose

create cloudtrail

  1. Trong phần Prefix - optional

    Bạn có thể tự đặt tên khác theo ý của các bạn nhé!

    • Nhập cloudtrail
    • Giữ Log file SSE-KMS encryption ở trạng thái không bật trong bài lab này
    • Giữ nguyên các thiết lập bổ sung mặc định

create cloudtrail

  1. Chúng ta kéo xuống phần và ấn Next

create cloudtrail

  1. Trong phần Choose log events

    • Event type tích chọn Management events
    • Tích chọn Data events

create cloudtrail

  1. Bước tiếp theo chúng ta kéo xuống phần Data events

    • Chọn vào dòng chữ Switch to basic event selectors để chuyển đổi chế độ

create cloudtrail

  1. Bước tiếp theo ấn Continue

create cloudtrail

  1. Trong phần Data event: S3

    • Data event source chọn S3
    • Trong phần All current and future S3 buckets, để Read và Write ở trạng thái không chọn
    • Individual bucket selection ấn Browse

create cloudtrail

  1. Bước tiếp theo

    • Chọn kms-key-s3-<account-id>-<region>-an
    • Xác nhận Read và Write đang được chọn cho bucket này
    • Ấn Choose

create cloudtrail

  1. Bước tiếp theo ấn Next

create cloudtrail

  1. Trong phần Configure event aggregation - optional

    • Để trống Aggregation templates
    • Chọn Next

create cloudtrail

  1. Trong phần Review and create

    • Xác nhận No aggregated templates selected
    • Chọn Create trail

create cloudtrail

  1. Xác nhận trail đã được tạo thành công

create cloudtrail

  1. Truy cập lại S3

create cloudtrail

  1. Chọn Buckets, mở General purpose buckets rồi chọn kms-key-s3-<account-id>-<region>-an

create cloudtrail

  1. Trong tab Objects, xác nhận thư mục cloudtrail/ đã được tạo. Thư mục này lưu các trail log, bao gồm cả S3 data events được ghi nhận cho kms-key-s3-<account-id>-<region>-an

create cloudtrail