Store file in S3 according to Year, month,date
Your design should be something like below

Create a file in YYYYMMDD format
let's assume that you are receiving a file named 20220129file_name.txt
Split it by "_" to get the DATE portion
Split other parts such as year/month and day
Create another function to validate if a particular year/month/day S3 folder exists? if yes then put the file in that folder or else create the folder set and put the file.
There is no ready-made code for the same but you can create it. It's pretty simple.
I have a very basic question.
The input is api feed from source, that has created date as a column. What I am looking to accomplish is to store this file(by splitting it up) into the following format:
landing/year=2020/month=01/date=01 and so on...
The year, month, date values are the dates from Created_at column.
THe file will be stored as transaction_id.parquet (transaction_id is also another column in the feed).
What is the suggested option to get to this structure? Is it prefix for each file by splitting created_date into year, month, date?
Looking for you response.
Thanks