Overview
AWS Lambda Function which updates the GitHub Copilot dashboard's:
- Organisation-wide historic data
- Copilot teams
- Teams history
Tech Stack Overview
This project uses:
- Python
- AWS Lambda
- AWS S3
Architecture Overview

This project uses 2 major components:
- The Lambda Function
- The GitHub API Toolkit (stored in another repository - Repository Link)
The Lambda Function
This component updates the Digital Landscape's Copilot dashboard data, stored within S3 buckets. The lambda imports the GitHub API Toolkit to get the API response containing the data, then adds any new data to the relevant S3 bucket.
The GitHub API Toolkit
This component is an imported library which is shared across multiple GitHub tools. The toolkit allows applications to make authenticated requests to the GitHub API. It is imported and used by both the dashboard and lambda function.
Endpoint
View docs for the Copilot usage data endpoint.
Historic Usage Data
This section gathers data from AWS S3. The Copilot usage endpoints have a limitation where they only return the last 100 days worth of information. To get around this, the project has an AWS Lambda function which runs weekly and stores data within an S3 bucket.
Copilot Teams Data
This section gathers a list of teams within the organisation with Copilot data and updates the S3 bucket accordingly. This allows all relevant teams to be displayed within the dashboard.