-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup configuration to run job that generates extracts of Opportunity DB tables for analytics daily #3160
Comments
Can't configure this until we have a bucket that the API can write to and analytics code read from. |
Assigning @coilysiren , we need The analytics |
## Summary Relates to #3160 ### Time to review: __2 mins__ ## Changes proposed - Writes the iterative s3 bucket ids and arns to ssm params - Reads the api's variants of those ssm params into the analytics application - Gives the analytics application access to the api's s3 buckets ##⚠️ Deploy Warning⚠️ This creates a dependency between the API infra and Analytics infra. Because of this, there will be a race condition between the two deployments. If a deploy is broken, then the fix is just to deploy again.
@coilysiren - After the PR, I'm still seeing |
👀 |
The deploy failed, so that's probably the cause |
@chouinar try it again! |
@coilysiren - Copying from thread: Need to make both the API and analytics terraform both be able to reference the API-analytics bucket for an env var. Easy to do for the API, put it in s3_buckets.tf - but not sure how the analytics code would reference it since it doesn't have that file. |
## Summary Fixes #3160 ### Time to review: __5 mins__ ## Changes proposed Configures an API job to create a CSV DB extract to run daily Configure an Analytics job to parse the CSV DB extract to run daily Env var renames to match what is configured in terraform ## Context for reviewers Jobs are pretty simple, just set them up to run 60 minutes apart for now. From testing, the first job took less than a minute to run in dev, so no concern with it finishing in time. ## Additional information Reran the jobs locally to verify every env var is connected properly
## Summary Relates to #3160 ### Time to review: __1 mins__ ## Context for reviewers #3589 was half done, this PR finishes it ## Testing I've deployed this to make sure the infra works. I tested the step function and: <img width="1318" alt="image" src="https://github.com/user-attachments/assets/dc25faed-c2dd-4a5e-af4a-bced51ed2abd" />
Summary
Scheduling the job + configuring
Prerequisite work needs to be done to create an s3 bucket for us to write to
Acceptance criteria
ANALYTICS_DB_CSV_FILE_PATH
env var set with a path to an s3 bucket that both the API and analytics can reach (API will write output here)The text was updated successfully, but these errors were encountered: