Tag: aws
-
How to list all lambda subscription filters to every Cloudwatch log group that you have
Recently i was working on a project that was listening to all our projects cloduwatch log groups and was forwarding them to Datadog. This adapter was doing some data enrichments of the log records and was also doing some obfuscation of sensitive data. At some point i wanted to find…
-
How to check with AWS cli if file exists in S3
Today i was working on adding history trends feature from Allure report to our Integration API Tests Framework and in order to do that i need to implement simple algorithm: Check if folder for specific group of tests history exists If it exists, copy this folder to allure-results folder Generate…
-
AWS: ReInvent. Performing chaos engineering in a serverless world
Thanks to my current employer New10 I was lucky to get to AWS:ReInvent conference this year in Las Vegas. I would like to share my notes on the talks I'm joining, while my memory is "fresh". My first talk was "Performing chaos engineering in a serverless…
-
How to fix "Could not execute the lambda function. Make sure you have given CloudWatch Logs permission to execute your function" error in AWS
I've been banging my head around this Could not execute the lambda function. Make sure you have given CloudWatch Logs permission to execute your function error for couple hours. Was trying to update IAM role for the lambda with different combination, but no luck. After couple times reading documentation i…
-
How to fix "PackageNotFoundError: importlib_metadata" error in Serverless AWS Lambda
I was building recently a serverless python microservice and for one of the endpoints i needed to implement jsonschema validation. Locally i have built it, covered with unit tests and everything was working just fine. But when i tried to deploy it to AWS Lambda with serverless framework, i ended…
-
Small trick on how to find out AWS payload for lambda for event
Recently i was writing a lot of different microservices using AWS Lambda. And for quite some time i was strugling to understand what will be the payload that my lambda will receive. Well, only in cases when this payload was coming from other AWS resources, of course :) Anyway, after quite…