Customer orders ETL
Copied link
A task that queries and enriches customer orders and syncs the data to snowflake.

Task
Customer orders etlPY
Pairs well with
1# Template: Customer orders etl23This task will query the database to get all customers who made an order in the last 24 hours.4Then it will upload the data to AWS S3 and bulk load the data into Snowflake.56## Setup7- Configure a [Snowflake resource](https://docs.airplane.dev/resources/snowflake) named `snowflake`.8- Give your Snowflake instance [access to your AWS S3 bucket](https://docs.snowflake.com/en/user-guide/data-load-s3)9- You'll need to configure [OIDC with Amazon Web Services](https://docs.airplane.dev/platform/oidc-aws) to allow Airplane tasks to upload to s3.10-- Once that is configured, create a [config variable](https://docs.airplane.dev/platform/configs) named `aws_oidc_role` with the AWS role you created (e.g. `arn:aws:iam::ACCOUNT_ID:role/airplane_oidc"`)11- Replace `YOUR_S3_BUCKET_NAME` and `YOUR_BUCKET_REGION` in the task code with your AWS S3 bucket name and region.1213## Next steps14- Navigate to the customer_orders_etl directory: `cd customer_orders_etl`15- Develop your template locally: `airplane dev`16- Deploy your tasks and view: `airplane deploy --yes`17- Visit the docs to learn more about how to build views: https://docs.airplane.dev/views/getting-started
Have a template suggestion? Let us know!