docker
docker-compose
terraform
-
In the Google Cloud console, go to Create a Project
-
In the Project Name field, enter a descriptive name for your project.
Optional: To edit the Project ID, click Edit. The project ID can't be changed after the project is created, so choose an ID that meets your needs for the lifetime of the project.
-
Click Create. The console navigates to the Dashboard page and your project is created within a few minutes.
-
After creation a project you have to create service account. Go to Service Accounts and choose your project:
-
Click on
CREATE SERVICE ACCOUNT
, enter the name and (optional) account ID and description and clickCREATE AND CONTINUE
: -
Grant this service account access to project's
BigQuery
andGCS
resources and data and clickCONTINUE
: -
Click
DONE
: -
Click on
Email
value of created account: -
Go to
KEYS
section of the opened page and create new key: -
After click on
CREATE
button the private key will be saved on your computer:
- Now you have to copy this JSON file to the
credentials
folder of your cloned project and rename this file tocredentials.json
:
-
Register on Chicago Data Portal
-
Sign in:
-
Go to Profile Edit | Developer Settings page:
-
Create new
App Token
: -
Copy created
App Token
and put this value in fileairflow/variables_and_connections/variables.json
as a value for theapp_token
key:
-
Create infrastructure with
terraform
following this instructions. -
See logs and find the name of bucket created by
terraform
: -
Copy the name of created bucket and put this value in file
airflow/variables_and_connections/variables.json
as a value for keysdestination_bucket
andsource_bucket
: