0

How do I make cloudwatch not log any lamba executions unless the process exited with a status greater than 0?

If not possible, how do I prevent lambda from writing any cloudwatch notifications.

7
  • This isn't possible. Why do you need to do this? Commented Oct 18, 2017 at 21:59
  • I believe cloudwatch is charging us per request which brings up the cost of lambda. If we're running serverless processes getting millions of requests, handling exception tracking from the lambda would be more ideal that cloudwatch catching every single message. Commented Oct 18, 2017 at 22:12
  • 2
    You are incorrect about being charged per request. CloudWatch logs charges $0.50 per GB ingested. aws.amazon.com/cloudwatch/pricing Commented Oct 18, 2017 at 22:40
  • 3
    You can remove CloudWatch permissions from the IAM role under which your Lambda runs and use a centralized log server to log to Commented Oct 19, 2017 at 15:01
  • 1
    @Unglückspilz I can accept this as an answer Commented Oct 21, 2017 at 17:17

1 Answer 1

3

You could remove CloudWatch permissions from the IAM role under which your Lambda runs and use a centralized log server to log to.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.