Skip to main content

Posts

Showing posts with the label Python 3

AWS Config - custom rules for automating system administrator's work

AWS Config is a service that enables you to assess, audit, and evaluate the configurations of your AWS resources. Config continuously monitors and records your AWS resource configurations and allows you to automate the evaluation of recorded configurations against desired configurations. What does this mean in practice? I'll tell you about my recent case. One of my clients uses the AWS Secrets Manager service to store OAuth keys and API tokens. There are a lot of keys and tokens (several hundred). Secrets rotation (update) is carried out using various AWS Lambda functions. It was difficult for the administrators to manually monitor whether everything in the system works correctly and if there are any keys that, for some reason, have not been updated for a given period of time. So I faced the task of creating 2 custom AWS Config rules:

How to сreate AWS Lambda Layer with Zeep Library

Python Zeep library designed to work with SOAP - services. Zeep is a pure-python module. However the lxml dependency does contain C code since it uses libxml2 and libxslt. So the Zeep library can not be deployed into the Lambda Layer without some tricks. In one of my Serverless projects, I needed to use this library, and I found such a way to deploy it into the Layer:

AWS Lambda and API Gateway for Bitrix24 webhook processing

Many of my clients use Bitrix24 cloud version as a CRM system and project management system. The main advantage of the cloud version over the on-premise is that the client does not need to think about a server, it's support and security. However, this advantage is partially lost when the need arises to extend the functionality of Bitrix24 through custom applications. Fortunately for the operation of simple non-replicable applications, those for which webhooks are usually used, do not need a server. Serverless service Lambda from AWS (Amazon Web Services) https://aws.amazon.com/ru/lambda/ and Amazon API Gateway https://aws.amazon.com/ru/api-gateway/ are enough.