AWSDetonationLab icon indicating copy to clipboard operation
AWSDetonationLab copied to clipboard

add option to choose between 1 s3 bucket for all logs or 1 s3 bucket per service

Open sonofagl1tch opened this issue 5 years ago • 2 comments

currently the det lab creates 1 s3 bucket per service getting logged. This was the easiest way to do it in the beginning due to how we learned to create the logging pipeline. Since then I have multiple requests to log all services to a single s3 bucket with a subdirectory for each service. This was due to a limitation in s3 for 100 buckets total. To solve this issue I think we should add an option to the config page for the user to select multiple or single s3 bucket for logs. The directory structure should look something like the below

  • rootDir - nameOfDetlab
    • childDirs - Guardduty|macie|cloudtrail|vpc|etc
      • logs - however they write out

sonofagl1tch avatar Apr 28 '19 01:04 sonofagl1tch

I think adding that condition will make the code harder to maintain since the buckets are configured in so many places we would need to add lots of conditionals. I think having a single bucket for everything is more convenient.

mgmacias95 avatar Apr 28 '19 02:04 mgmacias95

I think adding that condition will make the code harder to maintain since the buckets are configured in so many places we would need to add lots of conditionals. I think having a single bucket for everything is more convenient.

I agree with you. After looking at some documentation, I think the most practical path forward would be to migrate our current deployment standard of 1 bucket per service to 1 bucket with all services as a sub directory of that single bucket.

sonofagl1tch avatar Apr 28 '19 02:04 sonofagl1tch