From the course: Apache Airflow Essential Training
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Setting up a connection to Amazon S3 buckets - Apache Airflow Tutorial
From the course: Apache Airflow Essential Training
Setting up a connection to Amazon S3 buckets
- [Instructor] Now that we have everything set up, let's talk about what we'll be doing in our dag. We'll read data from AWS S3, using an S3 hook. And we'll write data out to a Postgres table using a Postgres hook. Here on screen, I'm logged into PSQL, this is my Postgres database. Now if you remember, we had already created a "customers_db" database. I have now connected to that database. Let's take a look at the tables here. I'll run the \dt command, and you can see that there are three tables that are present here, customers, customer purchases, and complete customer details. These are tables that were created in a previous demo. I'm going to be adding one more table to this database. I just wanted to show you that this database still exists. Let's head over to the Airflow UI. And in order to connect to S3, we need to set up a new connection. Go to Admin, Connections, and this is a page that we are familiar with.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Setting up for a PostgreSQL pipeline with hooks2m 28s
-
(Locked)
Creating and running a pipeline with PostgresSQL hooks6m 28s
-
(Locked)
Setting up access to Amazon S3 buckets4m 32s
-
(Locked)
Setting up a connection to Amazon S3 buckets2m 5s
-
(Locked)
Creating and running a pipeline with an S3 hook5m 43s
-
(Locked)
-