Cloudformation Case Study

Infrastructure Automation using AWS CloudFormation

HomeClientsCloudformation Case Study

About Purlin

Purlin’s mission is to put homebuyers in their perfect home. The hardest, and most important, part of buying a home is finding the right one. Most homebuyers trust high-tech sites and brokers to help them. Over half end up with buyer’s remorse. Purlin’s intelligent technology makes these matches and gets better as it learns more about what home-buyer likes.

The Challenge

Purlin’s home-buying platform is a web-based application providing the ability for home-buyers to engage. A short questionnaire captures rational needs and emotional desires. Their digital intelligence learns from buyer usage cues and evaluates thousands of homes and millions of images continuously. Under the hood, the infrastructure consists of multiple backend applications that serve user’s HTTP web requests, Database, Elasticsearch domain, and document storage. Applications run in the Docker environment.

As the customer base started increasing, development and release teams had a tough time releasing frequent new features and patches to production. Deployments on QA, staging, and production were manual and there was no automation process on AWS to setup a new environment to test the new features. Developers & infrastructure engineers had to spend 2-3 days of effort to setup the environment and deploy the code to test and move to production systems. This is a significant overhead from a project execution perspective. Another point which always comes to mind was the disaster recovery, the possibility to lose whole or even some part of infrastructure considered as a huge problem. The last but not least issue was the control and monitor changes in the infrastructure, currently, it was hard to evaluate who did an infrastructure change when and why.

Based on all of these requirements Purlin was looking for a solution to manage the current infrastructure in an easy way and has the following features:

  • Automatic resource provisioning
  • Fast infrastructure recovery in case of emergency
  • Quick deploy, repeatable infrastructure for development and test needs
  • Monitor external changes in AWS resources for the production environment (drift management)
  • Control and manage resources ownership
  • Secure, monitor and control access to the resources
  • Infrastructure must include CI/CD features for application changes integration.
  • Architecture must be resilient depending on application traffic (number of HTTP requests)

Why AWS

AWS CloudFormation lets developers and system administrators use code to provision, update, and manage a collection of related AWS resources — called a stack — in a consistent and controlled manner. There is a complete list of storage services for the project needs and Amazon CloudFront for fast content delivery. The requirements connected with continuous deployment are also covered with the services AWS CodeBuild, AWS CodePipeline.

 

The Solution

The proposed and implemented solution consists of numbers of dependent AWS CloudFormation templates responsible for managing an appropriate part of the customer’s infrastructure:

  • global resources such as Route53 hosted zone, IAM policies
  • resources for data management, especially RDS database instance, Elasticsearch domain, S3 bucket
  • network: resources such as VPC, IGV, route tables. subnets, etc.
  • resources for continuous deployment.
  • Amazon ECS cluster resources – cluster itself, Amazon ECR repository, appropriate IAM policies, log groups, Application Load Balancer with listeners, target groups and so on, Launch Configuration for AutoScalingGroup, and CloudWatch alarms

These templates are used to create production, development, and test environment. Also, a blue-green deployment approach was used to create parallel production environments on AWS, enabling continuous deployment and faster time-to-market.

In terms of security, a number of policies and deployment procedures were developed, for instance, the production stack protection with update policies, IAM policies for managing access to the stack resources and stack creation/update actions. AWS CloudWatch in connection with AWS Config services is used for monitoring changes in the production environment.

The benefits

The proposed and implemented solution resulted in several benefits for Purlin, for instance:

  • spend less time managing resources and more time focusing on applications
    After solution implementation, the development and test engineers can create the infrastructure in the “push button” manner to create the appropriate infrastructure.
  • easily control and track changes in the infrastructure
    Using AWS CloudFormation Change Sets allow infrastructure engineers to preview the changes in infrastructure and how these changes might impact currently running resources. Drift detection feature is used for detecting changes made outside from the CloudFormation template and infrastructure engineers take appropriate actions if necessary. In addition, AWS config is used to record configuration changes to all AWS CloudFormation stacks
  • repeatable infrastructure
    The development and test engineers are able to create “the same” infrastructure for their needs, it helps to obtain stable and robust test results and product with better quality.
  • simplify infrastructure management
    AWS CloudFormation manages dependencies between resources and allows make a change in infrastructure without keeping in mind how the set of resources needs to be configured to work together and what actions need to be done if one or more resources are changed.

About Nova Solutions

Nova Solutions is a global technology consulting company at the forefront of cloud computing. Through collaboration with Amazon Web Services, we help customers embrace a broad spectrum of innovative solutions. From a migration strategy to operational excellence, cloud-native development, and immersive transformation, Nova Solutions is a full spectrum integrator.

Let us worry about your I.T. while you can focus on your business

Let someone else worry about your technology

We want to hear about your project. Get a free consultation and estimate.