Skip to content

Conversation

@tomreitz
Copy link

@tomreitz tomreitz commented Sep 7, 2023

This adds an untested script provision-connections.py which (1) parses through the airflow config YAML to extract tenants and years, (2) prompts you for the Admin API credentials, (3) creates an application in the Ed-Fi Admin API for each tenant-year, and (4) adds the Ed-Fi API credentials as an Airflow connection. You'd call it like

python make-connections.py [school_year] [stadium_env] [sb_env] [claimset_name] [vendor_id]

or more concretely

python make-connections.py 2023 prod dev-2023 stadium_read 17

Note that you need to add lea_id: XXX to each tenant-year DAG in your Airflow config YAML.

This is a draft for feedback and discussion only, various things need to be addressed before it could be merged in, including

  • hard-coded Exchange references in Admin API URL and Ed-Fi API hostnames

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants