AWS CloudTrail

AWS Tutorial: AWS CloudTrail

Welcome to the AWS CloudTrail lesson. If CloudWatch monitors the performance of your resources, CloudTrail monitors the people interacting with your account.

AWS CloudTrail API Tracking

Why Learn AWS CloudTrail?

If a production database is accidentally deleted, you need to know exactly who deleted it, what time they did it, and from what IP address. CloudTrail acts as the ultimate security camera for your AWS account, providing strict governance, compliance, and auditing.

Tutorial Overview

In this tutorial, you will learn:


What is AWS CloudTrail?

AWS CloudTrail records every single API call made within your AWS account. Whether an action was taken by a user clicking in the Management Console, a developer running an AWS CLI command, or an automated script using the AWS SDK, CloudTrail logs the event.

A CloudTrail log answers three crucial questions:

  1. Who made the API call? (IAM User or Role)
  2. When was the API call made? (Timestamp)
  3. What was the API call? (e.g., TerminateInstances)

Exercise

?

You need to conduct a security audit to determine which IAM User deleted an Amazon S3 bucket yesterday. Which service provides this information?