I am trying to write a lambda function that will tag ec2 instances that will go from pending to running state. However, I have a problem reading the csv file that holds my ec2 instance tags. Currently, I have gone to where the lambda returns me the following result. However, I need a list of dictionaries. Because the rest of
Tag: devops
updating API Prometheus metrics on an Http server error
I work on a docker project with several containers and I wanna use python Prometheus library to monitor some metrics in the containers, expose each container’s metrics on a local port inside the docker-network and collect them in another container called Prometheus_exporter. For this purpose, I’ve defined several Prometheus metrics on my FastAPI and I wanna expose them on an
How to run pylint only on changed files in Gitlab?
I’m trying to run pylint only on changed python files, but my build keeps failing. I have extracted the changed files through git diff and saved them in a variable, but when I inject the variable into the pylint call, it fails. It works fine with a hardcoded filename however. Here is my yaml: Answer While qathulu answer is adequate,
How can I specify requirements for development separately from actual application dependencies? In a Python project and in general?
We have dependencies required for local development that we’d like to specify in our project for the sake of other developers. These dependencies are not actually required by the application though. In python we specify dependencies that the app need in a requirements.txt. What is the best practice for specifying/pinning development specific (not required by the app) dependencies and packages?