Questions tagged [aws-lambda-powertools]

5 questions
1
vote
2 answers

How to use aws_lambda_powertools logger to filter/disable specific api endpoint logs like health check /ping api

I tried to follow this general logging class filter() method but the method doesn't exist in aws_lambda_powertools logging and it throws an error. I am doing this to discard INFO: 127.0.0.1:51927 - "GET /ping HTTP/1.1" 200 OK rows in the aws…
1
vote
1 answer

How correctly log AWS Lambda event with lambda powertools

I've started using lambda power-tools for lambda. Currently my code looks like: @event_source(data_class=SNSEvent) @LOGGER.inject_lambda_context(log_event=True) def handler(event: SNSEvent, context: LambdaContext) -> None: # pylint: disable=W0613 …
Maciej
  • 1,209
  • 4
  • 16
  • 26
0
votes
0 answers

Export Swagger UI documentation as an API for AWS Lambda integrated with API Gateway

Lambda contains few endpoints developed using python lambda-powertools and deployed with API Gateway. All the required infra, Lambda, API Gateway is created through Terraform. How to export swagger UI documentation as an api like…
0
votes
0 answers

How to log SQS event when AWS Lambda timeout?

I use a AWS Lambda Python behind a SQS via an SQS event. How to log SQS event (input) when AWS Lambda timeout? actualy, I have my SQS event body in my SQS dead letter queue but I do not have any ERROR log in cloudwatch.
0
votes
1 answer

Is there a way to have different expiration for different idempotency records in aws-lambda-powertools-java?

Is there a way to configure different expiration time for different idempotency records? In the docs, it is possible to use @Idempotent on individual methods which stores the method response as idempotent record. If I want to use this annotation on…