sending cloudtrails to S3 bucket in different vpc account

1

i got aws 5 accounts in same vpc. got 6th aws account in different vpc. i need to send cloudtrails from all 5 accounts to a S3 bucket in completely different aws account (6th account/different vpc)

i got 2*ideas :

first idea: collect cloud trails from 1,2,3,4,5 aws accounts and send it to s3 bucket in 1st aws account .. and do s3 replication to the 6th aws account which is in different vpc. if i do this way - do i need vpc peering ??

second idea: collect cloud trails from 1,2,3,4,5 aws accounts and send it directly to s3 bucket in 6th aws account .. can this be done ??

or any other better option ? or which is the best among my 2 ideas ?

2개 답변
0

This is certainly possible, and the steps to implement it are here https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-receive-logs-from-multiple-accounts.html

Just a note around your terminology - buckets don't exist in VPCs and are not tied to a particular VPC. You may access an S3 bucket through a particular VPC endpoint, but that doesn't mean the bucket is only accessible through that method.

But yes, back to your main point, you can certainly setup CloudTrail to send logs from accounts #1, #2, #3, #4 & #5 into a bucket owner by account #6.

profile picture
전문가
Steve_M
답변함 9달 전
profile pictureAWS
전문가
검토됨 9달 전
  • Hi, Steve's proposal is the AWS-recommended way to do it. So, probably the path that you want to follow.

0

the link you sent shows my second idea.. so it looks like i dont need to care about my vpc peeering. its about bucket policy on destination.

just generally , why second idea better than first idea ?

profx
답변함 9달 전
  • Your first option would work, but adds a level of complexity for no real advantage.

    Whether you go with option 1 or 2 you are going to have to implement writing CloudTrail logs to a bucket in a different account.

    With option 2 that's all your work finished and everything works. With option 1 you then have to implement cross-region replication (which is certainly possible), but is more complex to manage and maintain, for no real reward.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠