Using Console
Using CLI
my-log-group-name
with the name you want to give to your CloudWatch Logs group.
my-log-group-name
with the name of the CloudWatch Logs group you created in step 2, and replace my-log-stream-name
with the name you want to give to your CloudWatch Logs stream.
my-trail-name
with the name of the CloudTrail trail you want to enable log file validation for.
my-trail-name
with the name of the CloudTrail trail you want to configure, replace arn:aws:logs:us-east-1:123456789012:log-group:my-log-group-name
with the ARN of the CloudWatch Logs group you created in step 2, and replace arn:aws:iam::123456789012:role/my-cloudtrail-role
with the ARN of the IAM role you want to use for CloudTrail.
Note: You need to have the required permissions to create CloudWatch Logs group, stream and IAM role.
Using Python
destinationArn
parameter with the ARN of the CloudWatch Logs destination you want to use.