Skip to main content

Posts

Showing posts with the label Elastic Compute Cloud

Automating EMQ Cluster Provisioning On AWS

Automating infrastructure on cloud is an interesting topic, one that is both intriguing and challenging at the same time. With a proper arsenal of  DevOps tools, this becomes pretty straightforward. In this blog post, we will attempt to create an EMQ cluster ( Erlang MQTT ) in AWS using popular HashiCorp tools like Packer and Terraform .  For a simple guide to setup EMQ cluster using Oracle VirtualBox, please refer to this post . Additionally, it is assumed that the reader is moderately versed with technologies like Packer & Terraform and has basic understanding of AWS networking & EC2 instances. Before we proceed into the technical nitty-gritty, here's a brief overview of what we will try to achieve. Crux of the matter  First of all, we will 'bake' an Amazon Machine Image or AMI for short, using Packer. This AMI will have EMQ (emqttd) installed. Subsequently, we'll use this custom AMI in our Terraform script to spin up EC2 instances and create...

AWS- Deploying Web Servers in Private Subnets

In this post, I will attempt to explain how to deploy Web Servers in private subnets. The common deployment pattern followed by newbies is to deploy Web Servers in public subnets or edge network and use an Elastic Load Balancer to route traffic to them. However, one may want to deploy such servers in private subnets or core network owing to better security and/or company network policies. So let us skip the fluff and get down to the nitty gritty. Assumptions I assume the reader is modestly aware of AWS services like Elastic Compute Cloud (EC2), Elastic Load Balancer (ELB); has knowledge of Virtual Private Cloud (VPC) and can spin up EC2 instances. Objective The objective is to present a highly available (in a single region) and secure deployment solution for a set of Web Servers. Explanation I shall use the diagram below, to explain the deployment. Diagram-1 The solution has the following significant components: The solution spans two AZs to provid...