https://serverless-stack.com/ logo
#help
Title
# help
a

Abdul Taleb

12/17/2021, 7:44 PM
Hi All, It seems like after our team adopted SST, our cloudwatch bill has increased significantly. Anyways on lowering cloudwatch fees?
g

Garret Harp

12/17/2021, 7:46 PM
If you are using seed I would assume it's from you just loading the page that has key metrics & their issues might have a play into that. I wouldnt think SST directly would cause anything cloudwatch related.
a

Abdul Taleb

12/17/2021, 7:47 PM
We aren't using seed
g

Garret Harp

12/17/2021, 7:49 PM
Which specific apis of cloudwatch are costing you more?
r

Ross Coundon

12/17/2021, 7:52 PM
Is this logging? Make sure that you have retention periods set appropriately
a

Abdul Taleb

12/17/2021, 7:56 PM
Yah I believe it's logging
f

Frank

12/18/2021, 12:39 PM
@Abdul Taleb SST enables Lambda logs and API access logs by default, and CDK defaults log retention to 2 yrs i think.
Before u make any changes, you can check a couple of things real quick: • In ur AWS billing dashboard, select a bill, expand the CloudWatch toggle and see the CloudWatch cost break down. Is it from log storage or ingesting the log? • If from log storage, go to CloudWatch console and see which Log Group is using the most storage. If it’s from functions/apis in the SST app, set log retention as @Ross Coundon suggested • If from log ingestion, check if you are writing a lot of logs in ur functions.
Let me know what you find.