Skip to content

Latest commit

 

History

History
96 lines (55 loc) · 3.4 KB

PREREQUISITES.md

File metadata and controls

96 lines (55 loc) · 3.4 KB

Apps to install:

docker

docker-compose

terraform

Google Cloud Project

  1. In the Google Cloud console, go to Create a Project

  2. 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.

    img.png

  3. Click Create. The console navigates to the Dashboard page and your project is created within a few minutes.

    img.png

  4. After creation a project you have to create service account. Go to Service Accounts and choose your project:

    img.png

  5. Click on CREATE SERVICE ACCOUNT, enter the name and (optional) account ID and description and click CREATE AND CONTINUE:

    img.png

  6. Grant this service account access to project's BigQuery and GCS resources and data and click CONTINUE:

    img.png

  7. Click DONE:

    img.png

  8. Click on Email value of created account:

    img.png

  9. Go to KEYS section of the opened page and create new key:

    img.png

    img.png

    img.png

  10. After click on CREATE button the private key will be saved on your computer:

img.png

  1. Now you have to copy this JSON file to the credentials folder of your cloned project and rename this file to credentials.json:

img.png

App Token Creation

  1. Register on Chicago Data Portal

  2. Sign in:

    img.png

  3. Go to Profile Edit | Developer Settings page:

    img.png

  4. Create new App Token:

    img.png img.png

  5. Copy created App Token and put this value in file airflow/variables_and_connections/variables.json as a value for the app_token key:

    img.png

Set GCS Bucket Variable

  1. Create infrastructure with terraform following this instructions.

  2. See logs and find the name of bucket created by terraform:

    img.png

  3. Copy the name of created bucket and put this value in file airflow/variables_and_connections/variables.json as a value for keys destination_bucket and source_bucket:

    img.png