Skip to content

Commit

Permalink
bacCr
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyek committed Feb 1, 2025
1 parent 381c0b6 commit d82472c
Show file tree
Hide file tree
Showing 6 changed files with 326 additions and 196 deletions.
2 changes: 1 addition & 1 deletion projects/scrape-txs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"scripts": {
"build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"start": "tsx --inspect=0 ./src/console.ts"
"start": "tsx ./src/console.ts"
},
"devDependencies": {
"@types/aws-lambda": "^8.10.136",
Expand Down
13 changes: 13 additions & 0 deletions projects/scrape-txs/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,16 @@ functions:
method: scheduler # use AWS::Scheduler::Schedule (EventBridge rule) instead of AWS::Events::Rule (CloudWatch Events rule)
rate: cron(0 7 * * ? *)
timezone: America/Guatemala # possible with AWS::Scheduler::Schedule
bacCrHandler:
image: ${env:ECR_REPO_URL}:${env:IMAGE_TAG}
memorySize: 1024
timeout: 300 # 5 minutes
environment:
BANK_KEY: bacCr
role: ${env:LAMBDA_ROLE_ARN}
events:
# Invoke Lambda function every day at 7am Guatemala time
- schedule:
method: scheduler # use AWS::Scheduler::Schedule (EventBridge rule) instead of AWS::Events::Rule (CloudWatch Events rule)
rate: cron(0 7 * * ? *)
timezone: America/Guatemala # possible with AWS::Scheduler::Schedule
168 changes: 0 additions & 168 deletions projects/scrape-txs/src/lib/bac-gt/scrape.ts

This file was deleted.

Loading

0 comments on commit d82472c

Please sign in to comment.