Create AWS Lambda Layer using Docker, Terraform and GitHub Actions

A Lambda layer is a distribution mechanism for libraries, custom runtimes, or other dependencies required in the AWS Lambda functions. Cloud engineers can manage and reuse these libraries and dependencies across multiple functions by packaging them into a layer. By the end of this note, you will learn how to create a Lambda layer for … Continue reading Create AWS Lambda Layer using Docker, Terraform and GitHub Actions

Automating AWS Lambda Deployment: Harnessing Terraform, GitHub Actions, and Python for CloudWatch Logging

Per AWS-Docs, AWS Lambda is a serverless computing service provided by Amazon Web Services (AWS) that allows developers to run code without provisioning or managing servers. With Lambda, you can execute code in response to events such as HTTP requests, database changes, or file uploads, scaling automatically with usage. It supports various programming languages and … Continue reading Automating AWS Lambda Deployment: Harnessing Terraform, GitHub Actions, and Python for CloudWatch Logging

Connect to an Amazon ElastiCache cluster from an Amazon EC2 instance using Python

This note continues my previous note on Amazon ElastiCache for Redis. In my earlier note, I demonstrated how to create an Amazon ElastiCache for the Redis cluster using Terraform and automate the process using GitHub Actions. In this note, I explain how to connect to the ElastiCache cluster using Python from an Amazon EC2 instance. … Continue reading Connect to an Amazon ElastiCache cluster from an Amazon EC2 instance using Python

Access AWS Secrets Manager secret from Amazon EC2 instance using Python

Per AWS-Docs, AWS Secrets Manager is a service to manage, retrieve, and rotate database credentials, application credentials, OAuth tokens, API keys, and other secrets throughout their lifecycles. Many AWS services store and use secrets in Secrets Manager. In this note, I demonstrate how to access the AWS Secrets Manager secret value using Python from an … Continue reading Access AWS Secrets Manager secret from Amazon EC2 instance using Python