Before diving deeper into the features and functionality of the CloudTrail service, you first need to understand its default settings. Knowing this can be helpful when deciphering questions and answers regarding the CloudTrail service on the Security Specialty Certification exam. Be sure that you understand the following base concepts for the exam:
Now that you understand the default settings with the CloudTrail service, the next section will take you through the process of setting up a new trail.
Even though CloudTrail is enabled by default in accounts, there are cases where turning on an additional trail makes sense. As part of the security team, you must ensure that all Regions and events are captured and stored with integrity. With all the valuable data in the trail, this can be a handy tool for developers working on items such as infrastructure as code or IAM features. Creating an additional trail in a particular Region for developers mitigates the risk of anything happening to the data contained in the original trail. It also allows the developers to toggle the features of the secondary trail on and off as they see fit.
The following steps will take you through the process of turning on an additional CloudTrail trail in a single Region:
You should now be on the dashboard page of CloudTrail.
You should now be on a page named Choose trail attributes.
Figure 7.7: CloudTrail setup screen
With this trail, you examined a scenario where developers needed access to the trail data. Therefore, you need to create a brand-new bucket to provide the correct access control to the development team to view the CloudTrail logs.
Figure 7.8: S3 bucket and folder selection for CloudTrail
Figure 7.9: CloudTrail encryption key creation
Figure 7.10: Additional settings dropdown
Once you press that Next button, you will be brought to the page to select which types of events you would like CloudTrail to log to this trail.
Figure 7.11: Event type selection for CloudTrail
Figure 7.12: Management events activity selection for CloudTrail
For data events, there are many options that you could choose to have recorded.
Figure 7.13: Data event type selection for CloudTrail
You can now look at the data events for the S3 buckets enabled in your new CloudTrail trail.