How to create a trail in AWS

0 votes

Hi Team,

I have created a web service in AWS. I want to record the API activity of the web service using the Cloud Trail service. Can anyone tell me, how can I create the Trail in AWS using the CLI command?

Nov 17, 2020 in AWS by akhtar
• 38,180 points
79 views

1 answer to this question.

0 votes

Hi@akhtar,

You can create a trail that specifies the settings for delivery of log data to an Amazon S3 bucket. The following create-trail command creates a multi-region trail named Trail1 and specifies an S3 bucket.

$ aws cloudtrail create-trail --name Trail1 --s3-bucket-name my-bucket --is-multi-region-trail
answered Nov 17, 2020 by MD
• 95,240 points

Related Questions In AWS

0 votes
2 answers

How to create a VPC in AWS?

There is another method i.e. creating an ...READ MORE

answered Feb 20, 2019 in AWS by Priyaj
• 58,120 points
242 views
0 votes
1 answer

How to create subnets in a VPC in AWS Console?

To create a subnet inside a VPC ...READ MORE

answered Feb 11, 2019 in AWS by Priyaj
• 58,120 points
172 views
0 votes
1 answer

How to create a S3 bucket in AWS Console?

To create a S3 bucket in AWS, ...READ MORE

answered Feb 13, 2019 in AWS by Priyaj
• 58,120 points
442 views
0 votes
1 answer
+1 vote
2 answers
0 votes
1 answer

How to create a VPC in AWS using Boto3?

Hi@akhtar, Amazon Web Services enables you to create ...READ MORE

answered Oct 9, 2020 in AWS by MD
• 95,240 points
412 views
0 votes
1 answer

How to create a security group in AWS with Boto3?

Hi@akhtar, You can create a new security group ...READ MORE

answered Oct 10, 2020 in AWS by MD
• 95,240 points
727 views