ladderlore
  • S3 や IAM などのサービス名を入力してください。

サービス · マネジメントとガバナンス

AWS CloudTrail

Records the actions taken in your AWS account: who did what, when and from where.

このレッスンはまだ翻訳されていないため、英語で表示しています。

User, role or AWS service
CloudTrail
Event history: last 90 days
S3CloudWatchoptional
  1. 1A user, a role or an AWS service makes a request: in the console, with the CLI or an SDK, or to the API.
  2. 2CloudTrail records it as an event. Management events from the last 90 days appear in the event history.
  3. 3A trail delivers the events as log files to an S3 bucket, where you can keep them for years.
CloudTrail records each request. The event history keeps 90 days, and a trail keeps events as long as you need. Sending them to CloudWatch Logs is optional.

流れ

  1. 1A user, a role or an AWS service makes a request: in the console, with the CLI or an SDK, or to the API.
  2. 2CloudTrail records it as an event. Management events from the last 90 days appear in the event history.
  3. 3A trail delivers the events as log files to an S3 bucket, where you can keep them for years.
  • CloudWatch

    The question it answers
    How is it performing? Is something wrong right now?
    例
    Alert when CPU use stays above 80%
  • CloudTrail

    The question it answers
    Who did what, when and from where?
    例
    Find the user who deleted a security group
  • Config

    The question it answers
    What does it look like, what changed, and does it follow the rules?
    例
    See that a security group was opened to the whole internet on Monday
Three services that are easy to mix up, and the question each one answers.

1 / 2

  • CloudWatch

    The question it answers
    How is it performing? Is something wrong right now?
    例
    Alert when CPU use stays above 80%
  • CloudTrail

    The question it answers
    Who did what, when and from where?
    例
    Find the user who deleted a security group

2 / 2

  • Config

    The question it answers
    What does it look like, what changed, and does it follow the rules?
    例
    See that a security group was opened to the whole internet on Monday
Three services that are easy to mix up, and the question each one answers.

概要

AWS CloudTrail records actions taken by users, roles and AWS services as events. It records requests made in the AWS Management Console, with the AWS Command Line Interface (AWS CLI), with the AWS SDKs and directly to the APIs. Each event shows who made the request, which action it was and on which resource, when it happened and the source IP address.

概要

Every account can view, search and download the last 90 days of management events in the event history, at no charge. To keep events longer, you create a trail. A trail delivers log files to an Amazon Simple Storage Service (Amazon S3) bucket, and can also send events to Amazon CloudWatch Logs so you can set alarms on them. In AWS Organizations, one organization trail can record every account.

Management events, such as launching an instance or changing a security group, are recorded by default. Data events, such as reading an object in S3, come in much larger numbers. You turn them on separately, and they cost extra.

覚えること

  • CloudTrail is on by default. The event history shows the last 90 days of management events in each Region, at no charge.
  • A trail keeps events in an S3 bucket for as long as you need. One copy of management events is delivered free. You pay for the S3 storage.
  • Trails created in the console record activity in every enabled Region.

覚えること

  • Log file integrity validation shows whether a log file was changed or deleted after delivery.
  • Member accounts cannot turn off or change an organization trail.
  • You can query CloudTrail logs in S3 with SQL, using Amazon Athena.

試験では

  • “Which user terminated this EC2 instance?” or “track API activity for an audit” points to AWS CloudTrail.
  • “Who changed it?” is CloudTrail. “What changed, and is it compliant?” is AWS Config. “How is it performing?” is Amazon CloudWatch.
  • “Keep a record of API activity for longer than 90 days” points to a CloudTrail trail that delivers log files to Amazon S3.