AWS EC2, build high available architecture for a Java web application

In this entry I would like to share my recent training activity in AWS where I’ve learn how to build and deploy the next architecture for a Java web application in a highly availability infrastructure.

As you can see, it has an Aplication Load Balancer (ALB) configured to use an Auto Scaling Group (ASG), it will launch EC2 instances in a private subnet, every EC2 instance would connect to RDS database (MySQL).

This time I can’t share all detailed steps because I have a restricted user and it don’t have enough permissions to read the security groups neither VPC configuration, including other elements like the instance profile, for that reason I’m going to describe it in summarized way to keep it simple.

Let’s get started.

Seguir leyendo

AWS EventBridge + SNS, how to send an email when a new EC2 instance is lauched

In this entry I’m going to show how to configure the Amazon EventBridge with the Simple Notification Service to send an email when an EC2 instance is launched (instance creation), either with a Management account, Memeber account into an AWS organization structure, the next diagram shows the structure of this solution.

The official AWS documentation says:

«EventBridge is a serverless service that uses events to connect application components together, making it easier for you to build scalable event-driven applications.

EventBridge receives an event, an indicator of a change in environment, and applies a rule to route the event to a target. Rules match events to targets based on either the structure of the event, called an event pattern, or on a schedule. For example, when an Amazon EC2 instance changes from pending to running, you can have a rule that sends the event to a Lambda function.«

So, our event is the creation of the EC2 instance (when it is launched), we need to create a rule to match that event and redirect to the predefined target, in this case, to the SNS service in order to send the email.

Let’s get started.

Seguir leyendo

V19 Vivienda entre medianeras / Viraje arquitectura

Algún día quiero estudiar arquitectura para saber como desarrollar una mentalidad más creativa con los espacios. Aunque existen muchas vertientes me gusta ver el desarrollo de vivienda y la forma en como ordenan los espacios de algo tan común a lo extraordinario.

Así que he decido colocar aquí un espacio a la semana para mostrar los desarrollos que me gustan, de vez en cuando sigo la página de Archdaily.

Screen Shot 2019-04-20 at 3.32.32 PM

Y el primero a compartir es este:

V19 Vivienda entre medianeras / Viraje arquitectura

Me parece hermoso como utilizan la iluminación para darle vida al desarrollo, es un espacio pequeño pero en mi opinión se ve fantástico.

Saludos