Skip to content

Commit

Permalink
note that we may have to manually update the lambda image
Browse files Browse the repository at this point in the history
  • Loading branch information
gvelez17 committed Nov 22, 2023
1 parent e2531b9 commit 8736447
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion get-clones/clones-lambda.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
11 changes: 11 additions & 0 deletions logs-to-tsdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions logs-to-tsdb/backfill/get-all-days.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8736447

Please sign in to comment.