Observe AWS Resource Activity

Observe AWS Resource Activity

In this guide you will learn how Guardrails detects and reacts to events in your AWS account. You will manually create and modify an S3 bucket in your account and explore how to view that activity in the Guardrails console.

This is the third guide in the Getting started with AWS series.

Prerequisites

[!NOTE] We will use the bucket name bucket-example-01 in this guide. Bucket names in AWS must be globally unique, so please change the default name for your testing.

Step 1: Create an S3 bucket

After logging into the AWS console, navigate to S3 and select the Create Bucket button.

create-bucket-1

Give your bucket a name that is easy to remember.

create-bucket-2

Accept all defaults for the remaining configuration choices and then select the Create Bucket button.

create-bucket-3

Step 2: Resource Activities report

Select Reports from the top navigation bar. Search for the word "resource" and select Resource Activities.

aws_search_resource_activities

Step 3: Filter by type

From the filter bar, expand the Resource Type dropdown.

aws-resource-type-dropdown

Set the filter to AWS > S3 > Bucket. You can do this by typing aws s3 bucket into the search box, as shown here. When you see AWS > S3 > Bucket appear in the list, select the checkbox next to it.

aws-resource-type-search

Step 4: Observe activity

You can scope the resource activity report to a specific bucket by searching for the name of your bucket. To do this, type its name into the search field. Guardrails will show all notifications related to the bucket. In the screen below, the RESOURCE CREATED activity represents Guardrails discovery of the bucket and RESOURCE UPDATED indicates that Guardrails has updated the CMDB entry with additional details about the bucket.

aws-resource-activities-initial-notifications

Step 5: Enable versioning

In the AWS console, select the name of your bucket from the list of all buckets. Select the Properties tab and then select the Edit button in the Bucket Versioning section.

enable-versioning

In the Versioning dialog box choose Enable, then select Save changes.

enable-versioning

Step 6: Observe events

Switch back to the Guardrails console browser tab. Guardrails' event processing system will soon detect the change, and a new RESOURCE UPDATED notification will appear in the list. Select that new notification from the Activities list.

aws-resource-activities-with-change-detected

Step 7: Audit resource change

On the notifications detail page, you can see metadata about the change and even audit the changes in configuration between the previous known state and the observed change. Scroll down in the DIFF section to observe the changes that Guardrails has recorded.

aws-diff-the-first-change

Step 8: Review

In this guide you changed the versioning property of an S3 bucket and observed how Guardrails recorded the change.

Next Steps

Next we’ll explore how to enable a policy pack that requires buckets to enable versioning.

Progress tracker