Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
    • Data
    • Security
Google Cloud Platform icon
Labs

Creating a CloudTrail Trail and EventBridge Alert for Console Sign-Ins

During this hands-on lab you will explore how to create a multi-Region CloudTrail Trail with Log File Integrity and Validation enabled, as well as create an EventBridge Rule that can send a notification via Amazon SNS to alert you whenever there is a Root user console sign-in!

Google Cloud Platform icon
Lab platform
Lab Info
Level
Beginner
Last updated
Sep 25, 2025
Duration
30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Create Multi-Region CloudTrail Trail

    Create a new CloudTrail Trail (do not use the quick create feature!) with the following settings:

    If the settings are not mentioned below, then leave as default.

    Trail Attributes

    • Name: OurTrail
    • Storage location: Create new S3 bucket.
    • Log file SSE-KMS encryption: Enabled
    • New KMS Key Alias: CloudTrailKey
    • Log File Validation: Enabled

    Log Events

    • Event type: Management events
    • Management events: Read and Write API Activity
  2. Challenge

    Create CloudTrail-specific KMS Key

    This will be created during your CloudTrail Trail creation in the previous objective. We call it out separately here for a learning check.

    Create a new KMS key with an Alias of CloudTrailKey.

  3. Challenge

    Create SNS Topic and Subscription
    • Create a new standard SNS Topic called ConsoleAlerts.
    • Create a new subscription for the SNS Topic using the email protocol.
    • Confirm the subscription via the chosen email address.
    • Test the subscription by publishing a test message.
  4. Challenge

    Create Amazon EventBridge Rule
    • Create a new EventBridge Rule named ConsoleSigninAlerts.
    • Set the event bus to default.
    • Set the rule type to Rule with event pattern.
    • For Event source choose AWS events or EventBridge partner events.
    • Under Creation method choose Custom pattern (JSON editor) and copy/paste the JSON file from the lab GitHub repo. Update references of REPLACE_ME with your account ID.
    • Under Sample events choose AWS Console Sign In via CloudTrail and copy the code.
    • Switch Sample event type to Enter my own, paste the copied code and replace account ID references on lines 6, 14, 15, and 16 with your account ID.
    • Set the target to be your ConsoleAlerts SNS Topic.
    • Test everything by signing out of your AWS account then back in as cloud_user. You should receive an email containing the JSON of the captured event.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight