glue etl jobs - get s3 subfolders using create_dynamic_frame.from_options

Viewed 3215

I am creating an AWS Glue ETL job, but I'm running into some roadblocks with file retrieval.

It seems that the following code only gets the files at the root folder 2017 and not any further. Is there any way to include all subfolders and files within them?

dyf = glueContext.create_dynamic_frame.from_options(
    's3',
    {"paths": [
        's3://bucket/2017/'
        ]},
    "json",
    transformation_ctx = "dyf")

1 Answers
Related