Can Prefect run AWS glue?
# data-tricks-and-tips
z
Can Prefect run AWS glue?
2
a
yes. if you can write it in python, you can coordinate/orchestrate it with Prefect
Copy code
# you could do

from prefect import flow

@flow
def write_to_s3_glue():
    wr.s3.to_parquet(
    df=df,
    path=f"s3://{bucket}/products/",
    dataset=True,
    database="awswrangler_test",
    table="products",
    mode="overwrite",
    description=desc,
    parameters=param,
    columns_comments=comments
)
🙌 1
z
Oh, that's very nice!
I was looking at Airbyte earlier but seems the functionality is quite limited to EL. Additionally I would need to run a server to host it(cost consideration). Therefore I'm revisiting Glue and glad to see that prefect can coordinate it's usage.
a
💯