Skip to content

Latest commit

 

History

History

centralized-logging-config-s3-bucket

Centralized Logging AWS Config

Notice: This repository provides sample scripts, templates, policies, etc. They are not intended to be or supported as solutions, but serve as a helpful reference for building your own landing zone solution.

To centralize AWS Config logs, you'll need to configure a central AWS S3 Bucket with the necessary permissions, allowing AWS Config to write logs to it. Take advantage of the directory's resources to create your own AWS S3 Bucket exclusively for centralized logging of AWS Config.

S3 Bucket Policy - Centralized Logging AWS Config

The s3-bucket-policy-centralized-logging-config.json S3 Bucket policy will enable an S3 bucket to receive AWS Config recorder logs from member accounts in the AWS Organization.

Follow the AWS Config User Guide guidance on creating an S3 bucket policy for AWS Config.

CloudFormation - S3 Bucket for Centralized AWS Config logging

The CloudFormation template cfn-centralized-logging-config-s3-bucket.yaml creates an S3 Bucket to be deployed in your log archive account for centralized logging of Config. Template will deploy two S3 buckets: one for centralized config logging and another for access logging.

The centralized config logging bucket is configured so that AWS Config can write to it within your Organization. Deploy this bucket to your log archive account.

Parameters

Parameter Type Default Value Description
S3 Bucket name String config-logs defines the name of the s3 bucket to store logs from Config. The name will be suffixed with the account ID to help create a globally unique name.
SSE algorithm String AES256 Accepts values of AES256 or aws:kms to set the server side encryption of the S3 Bucket. If you specify aws:kms you will need to include KMS Key ID parameter in the template.
KMS key ID String The KMS key ID that you use to encrypt data at rest in the S3 Bucket. Leave this blank if using AES256 for the SSE algorithm parameter. If using KMS Key, ensure it is in same region as the S3 Bucket.
Retention in days String 365 Number of Days to retain the Config logs, after which it will be permanently deleted.
Retention days for access logs String 365 Number of Days to retain the access logs, after which it will be permanently deleted.
Transition to Glacier String No Yes or No option to to specify to transition the logs to Glacier before permanently deleting.
Transition to Glacier days String 364 The number of days to transition the data from S3 to Glacier if Glacier is being used.