followcrom / DomDom-mobile

RanDOM WisDOM Andoid app
https://play.google.com/store/apps/details?id=online.followcrom.RandomWisdom
0 stars 0 forks source link

SC-003 #1

Open followcrom opened 1 month ago

followcrom commented 1 month ago

Event bridge event to trigger send notifications Lamba general configuration Lambda metrics Cloud watch logs of function Lambda policy

Ddb Read write capacity - provisioned or on demand mode. I want on demand or provisioned auto scaling?

Api gateway test and cloud watch logs

followcrom commented 1 month ago

DDB: provisioned capacity, auto-scaling

Provisioned range for reads: 1 - 25 Provisioned range for writes: 1 - 10 (This should be within the free tier)

Lamba general configuration

128MB Memory 3sec Timeout 512MB Ephemeral storage

Lambda policy

DDB Read Only Access Lambda Basic Execution Role

Cloud watch logs of function

I turned this on in Configuration -> Monitoring and operations tools _> Logging configuration -> Edit -> I changed to format to JSON and saved. The log group appeared in Cloud Watch where it previously didn't exist. (This might not have been the cause.) log group doesn't exisit log group exisits

API gateway test

/getphrase Fri Jul 12 20:59:09 UTC 2024 : Successfully completed execution Fri Jul 12 20:59:09 UTC 2024 : Method completed with status: 200 /searchphrase Send the search term as the request body: { "searchTerm": "random" } Fri Jul 12 21:12:53 UTC 2024 : Endpoint request body after transformations: { "searchTerm": "random" } Fri Jul 12 21:12:53 UTC 2024 : Sending request to https://lambda.eu-west-2.amazonaws.com/2015-03-31/functions/arn:aws:lambda:eu-west-2:131936741611:function:searchPhrase18/invocations Fri Jul 12 21:12:53 UTC 2024 : Received response. Status: 200, Integration latency: 481ms

API gateway cloud watch logs

Dashboard View in CloudWatch: Can see something that seems to be tracking in All metrics

followcrom commented 1 month ago

NOT done

Event bridge event to trigger send notifications