Menu
×
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

AWS CloudTrail and AWS Config


AWS CloudTrail and AWS Config

AWS CloudTrail and AWS Config are two services that can help you watch your serverless apps.

They give you centralized reporting.

They give you the ability to automate responses to possible security risks.

AWS CloudTrail can tell you who changed the status of your resources.

AWS Config can tell you if the changes are compliant with your policies.

Both let you take action automatically if something goes wrong.

When you establish an AWS account, CloudTrail is activated automatically.


AWS CloudTrail and AWS Config Video

W3schools.com collaborates with Amazon Web Services to deliver digital training content to our students.


AWS CloudTrail

CloudTrail keeps track of your account's user API activity.

It also provides you with detailed reports.

Request parameters and the AWS service response parts are all detailed.

CloudTrail tracks an IAM user, IAM role, AWS service actions, AWS SDK, console, CLI, and API actions.

They are all logged.

A trail might, for example, collect API Gateway API changes.


AWS Config

AWS Config allows you to inspect snapshots of your resource configuration.

It also sets rules to enforce compliance.

An AWS Config rule defines configuration settings for single AWS services or an entire AWS account.

If a resource violates a rule, AWS Config tells you through SNS.

AWS Config comes with predefined rules that you may edit.

You may also need AWS Config rules to help developers build Lambda functions.

Another feature of AWS Config is the ability to fix issues automatically.


Cloudtrail Events

Every action in your AWS account generates a CloudTrail event.

You can see recent events in the event history.

The CloudTrail event history allows you to browse, search, and download historical CloudTrail events.


Cloudtrail Trails

A trail is a configuration that enables the delivery of CloudTrail events.

It enables delivery to an Amazon S3 bucket, CloudWatch Logs, and CloudWatch Events.

You can construct your own trail if you need to keep track of more events.

A trail records events on or inside AWS services and publishes them to an S3 bucket you designate.

A trail might capture changes to your API Gateway APIs.

Your account's Lambda functions can optionally add data events to follow S3 object-level API activity.

CloudTrail Insights can help you discover and respond to unexpected writing API activity.


Related reads:

CloudTrail Concepts
Sending CloudTrail Events to CloudWatch Logs
AWS Config Concepts

AWS Serverless Exercises

Test Yourself With Exercises

Exercise:

What is a trail?

A configuration that enables the  of CloudTrail 

Start the Exercise


×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.