Skip to main content

Posts

How to setup server for Bitrix24 on AWS EC2

Bitrix24 cloud version basic implementation for only $400

Bitrix24 cloud version basic implementation for only $400. What list of tasks is included in the basic implementation?

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:

Cloud Bitrix24 and Post Tracking - SOAP Integration via AWS Lambda

I like to use Serverless AWS technology: Lambda and API Gateway to customize the cloud Bitrix24. It is comfortable, simple, elegant and very cheap. For example, AWS Lambda gives us the possibility to check post tracking numbers for free for the first year through the Post SOAP service. After a year, if my measurements and calculations are correct, checking 100,000 post tracking numbers will cost about $12.  What do we need for this:

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.