VPC Flow Logs - Create a Directory S3

Hey Guys,

So I am creating a VPC Flow Log and storing it in a Bucket.

If I create it through AWS Console, I can create a folder after the s3 arn.

But I don’t see an option to create folder here through terraform and store the logs in that folder.

is there a way?

Thankss in Advance! :slight_smile:

Hi @skalion6591 ,
there’s a resource for bucket objects.
I haven’t tried it

resource "aws_s3_bucket_object" "folder" {
  bucket = "your_bucket_name"
  key    = "vpcflowlogs/"
}