In this article, I will explain the step-by-step process starting from defining task definition for your microservice and exposing the microservice to the external users through a custom domain name.

There are business use cases where we are required to expose one of our microservices to an external user or client. But sometimes these microservices are hosted in a private VPC and exposing all of the microservices will lead to security issues. To avoid and expose only the required service, we use API gateway and Route 53 as a solution,

Steps involved in the process,

Assumption: Image for the microservice…


In this article, I will go through the step by step process on how we can leverage Jenkins for building jobs that require higher capacity AWS EC2 instance or when the master node in Jenkins is loaded or to speed up building jobs.

Problem Description: Consider we have to create an build or an artifact through Jenkins's job that requires higher capacity EC2 instance. If we run the same build job in a lower volume or capacity machine, it takes more than 2 hrs to build. …


In many cases, we have a mix of devices like Apple iMac and Windows 10 Laptop. How can we use this both for our work? This article illustrates how we can maximize our productivity by using the devices we have.

We have a lot of options to consider iMac as second monitor for Windows PC or Laptop, but limited ones for extending windows laptop as second monitor for iMac or MacBook.

After doing some research by trying different apps AirPlay, 5kPlayer got a wonderful app DuetDisplay which resolved my issue. I want to make my windows 10 Laptop as second…


In this section, I will tell you an easy way of how we can debug logs from CloudWatch when the log events are more.

Problem Description: Consider we have a Lambda that processes more than 1000 records and for every processing of the data, an event will be logged in to CloudWatch. Now some of the data in the processing failed. We need to identify how and why the data has failed.

To check the above issue,

  1. Login to AWS Console, look for CloudWatch services

Amazon Simple Storage Service (Amazon S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. This means customers of all sizes and industries can use it to store and protect any amount of data for a range of use cases, such as websites, mobile applications, backup and restore, archive, enterprise applications, IoT devices, and big data analytics. Amazon S3 provides easy-to-use management features so you can organize your data and configure finely-tuned access controls to meet your specific business, organisational, and compliance requirements. (Ref: https://aws.amazon.com/s3/)

As the organization grew, so is the data. The data…


In this post, I will explain how to enable cross account setup for collecting AWS CloudTrail Event Logs

Objective:

Consider we have different AWS accounts (dev, test, staging, prod) in our org. For compliance and auditing of each account we need to collect the event logs and store it in a centralised account. The logs provide the details of every activity that happened to the account through AWS management console, AWS SDK’s and other AWS services (E.g., scheduled tasks that run through AWS ECS or AWS CloudWatch).

Use case:

Collect the CloudTrail Logs from Account A (dev-account), Account B (test-account)…


In this post, I will tell you how to set up conditional steps in Jenkins to configure multiple services using single build job. Let’s consider the below use case.

Use case:

Consider the below screenshot, where we have a main repository, with 4 different services.

MS Service 1. MS Service 2, MS Service 3 , uses gradle /maven to build the artifact (.jar or.war). After build, the artifact must be converted to docker image and to be pushed to AWS ECR

Fourth service contain only a shell script and a Docker File. The build must create a docker image with…


In this post, I will explain how to update or register a task definition in AWS ECS with new ECR image and to use the new task definition in ECS, scheduled tasks using aws-cli commands. Below setup was implemented through deployment jobs in Jenkins

Updating/Registering a task definition with new ECR image

  1. Copy the new ECR image from AWS ECR that needs to be updated in the task definition

NEW_ECR_IMAGE=${ECR_REPO_URL} //copy the image URI

Doyle Wilson

Senior Software Engineer | Java | Microservices | AWS | Terraform

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store