gh actions works (#149)

This commit is contained in:
Will Freeman
2026-08-22 21:30:38 -06:00
committed by GitHub
parent 74a09421dc
commit e124d28c8e
6 changed files with 98 additions and 30 deletions
+5 -1
View File
@@ -3,4 +3,8 @@
Counts total ALPRs reported in the OSM database, hourly. OSM's Overpass API is used to query for counts of all ALPRs and ALPRs in the United States. The counts are stored in a JSON file in an S3 bucket.
## Deploying
This Lambda uses a zip file, so from the `/terraform` directory, you can run `terraform apply -target=module.alpr_counts` after making changes, and it should detect the changes, rebuild the zip, and update the Lambda's function code.
This Lambda runs as a container image. Code changes to `serverless/alpr_counts/**` deploy automatically via GitHub Actions (`.github/workflows/alpr-counts-deploy.yml`) on push to `master` — it builds the image, pushes it to ECR, and updates the Lambda's function code.
To deploy manually (e.g. for local testing), run `./deploy.sh` with AWS credentials configured.
Infrastructure changes (IAM, ECR repo, EventBridge schedule, alarms) still go through Terraform: from the `/terraform` directory, run `terraform apply -target=module.alpr_counts`.