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

Automating AWS Infrastructure with CloudFormation and GitHub Actions: A Tutorial

This note aims to demonstrate how to deploy a couple of CloudFormation templates using GitHub Actions to create Amazon cloud resources. There are two tools we're discussing. The first one is AWS CloudFormation, an infrastructure as a code tool to provision AWS cloud resources declaratively. The AWS cloud resources and their relationships are declared in … Continue reading Automating AWS Infrastructure with CloudFormation and GitHub Actions: A Tutorial

Continuous Deployment of Amazon ECS service using Terraform and GitHub Actions

This note demonstrates how to host a Docker image as a container in Amazon Elastic Container Service (Amazon ECS). Per AWS Docs, Amazon ECS is a fully managed container orchestration service that helps you easily deploy, manage, and scale containerized applications. Deploying a service into Amazon ECS can be divided into three separate use cases: … Continue reading Continuous Deployment of Amazon ECS service using Terraform and GitHub Actions

Build, Scan, and Push Docker image to Amazon ECR using GitHub Actions

This blog post is the second part of an umbrella series in which I demonstrate how to create and deploy an Amazon Elastic Container Service (ECS) service using Terraform and GitHub Actions. In the first part, I covered creating all the required AWS cloud services to host the ECS service. In this second part, I'll … Continue reading Build, Scan, and Push Docker image to Amazon ECR using GitHub Actions

Create infrastructure to host an Amazon ECS Service using Terraform

This is the first part of an umbrella note in which I describe how to create and deploy an Amazon ECS service using Terraform and GitHub Actions. The cloud engineering team must provision particular AWS cloud services before hosting a container in Amazon ECS. In this note, I list all the required AWS services, their … Continue reading Create infrastructure to host an Amazon ECS Service using Terraform

Create an Amazon Managed Grafana workspace and Identity store user using Terraform

This note is an extension of my previous note on creating an Amazon Managed Grafana workspace with one more resource added to the configuration. In my earlier note, there was a pre-requisite manual step to create the IAM Identity Center user before creating the Amazon Managed Grafana workspace. At that time, the AWS Terraform provider … Continue reading Create an Amazon Managed Grafana workspace and Identity store user using Terraform

Create an Amazon EC2 instance using Terraform with Session Manager access using VPC Endpoint

As a reader of this note, I believe you are familiar with Session Manager. Per AWS-Docs, Session Manager is a fully managed AWS Systems Manager capability that lets you manage your Amazon EC2 instances through an interactive one-click browser-based shell or through the AWS CLI. For Session Manager to function, the Amazon VPC requires access … Continue reading Create an Amazon EC2 instance using Terraform with Session Manager access using VPC Endpoint

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

Create an Amazon ElastiCache for Redis cluster using Terraform

Reading the title, you must have a fair idea of what we’re discussing in this note. Also, I followed a few best practices while creating the Amazon ElastiCache service, like enabling multi-availability zone, multi-node, logging, and encryption in transit and at rest. I have a link to my GitHub repository with the Terraform and GitHub … Continue reading Create an Amazon ElastiCache for Redis cluster using Terraform