From 873644777ede5d1e671743408c68b683643c40c0 Mon Sep 17 00:00:00 2001 From: Golda Velez Date: Tue, 21 Nov 2023 19:34:28 -0700 Subject: [PATCH] note that we may have to manually update the lambda image --- get-clones/clones-lambda.py | 2 +- logs-to-tsdb/README.md | 11 +++++++++++ logs-to-tsdb/backfill/get-all-days.py | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/get-clones/clones-lambda.py b/get-clones/clones-lambda.py index cd16fb0..1ce9a95 100644 --- a/get-clones/clones-lambda.py +++ b/get-clones/clones-lambda.py @@ -40,7 +40,7 @@ def handler(): ) cursor = conn.cursor() - repos = ['ComposeDbExampleApp','lit-composedb','ceramic-eas','ceramic-ai'] + repos = ['ComposeDbExampleApp','lit-composedb','ceramic-eas','ceramic-ai','verifiable-credentials'] for repo in repos: response = requests.get( diff --git a/logs-to-tsdb/README.md b/logs-to-tsdb/README.md index ead2496..78663ef 100644 --- a/logs-to-tsdb/README.md +++ b/logs-to-tsdb/README.md @@ -40,3 +40,14 @@ python-lambda-local -f handler logs-lambda.py sample_test.json -t 600 New images are [published here](https://us-east-2.console.aws.amazon.com/ecr/repositories/private/967314784947/data-pipes-logs?region=us-east-2) +## DEPLOYMENT + +there is a trigger on changes to main that will update the image, but the lambda may not pick up the changes + +To ensure the lambda picks up the new image, go to + +https://us-east-2.console.aws.amazon.com/lambda/home?region=us-east-2#/functions/LogsToTSDB-tnet?tab=image +and +https://us-east-2.console.aws.amazon.com/lambda/home?region=us-east-2#/functions/LogsToTSDB-prod?tab=image + +and click on "Deploy new image" diff --git a/logs-to-tsdb/backfill/get-all-days.py b/logs-to-tsdb/backfill/get-all-days.py index 7ef0926..87b12d2 100644 --- a/logs-to-tsdb/backfill/get-all-days.py +++ b/logs-to-tsdb/backfill/get-all-days.py @@ -36,8 +36,8 @@ def get_query_results(query_id, filename): def main(): log_group = "/ecs/ceramic-prod-cas" - start_date_str = "2023-10-20 12:00:00" - end_date_str = "2023-11-08 13:00:00" + start_date_str = "2023-11-08 13:00:00" + end_date_str = "2023-11-15 15:00:00" start_date = datetime.strptime(start_date_str, "%Y-%m-%d %H:%M:%S").replace(tzinfo=timezone.utc) end_date = datetime.strptime(end_date_str, "%Y-%m-%d %H:%M:%S").replace(tzinfo=timezone.utc)