Category

Tehnology

Terraform generate subnet CIDR using network function

Need an easy and simple way to create the subnet CIDR that adhere the specific pattern such as even number for public subnet, odd number for private subnet. Look no further than the cidrsubnet() function along with a for loop and the range function! By providing a range to the cidrsubnet() function, the function automatically…

Setup and run website in Docker Container with Terraform

In this post, I will share on how to create the simple Hello World Nodejs Docker container and deploy it with Terraform in your local machine. To test on this demo, you need to make sure that you have docker and terraform installed, if not, you may refer to their official website on how to…

Terraform workspace to deploy multiple environment stack

When working with infrastructure, we always have to deal multiple environment such as development, staging, production or UAT, as a system engineer or infrastructure engineer, we always want to make sure that all our deployed environment should work the same and can be repeatedly deploy without any code changing or complicated logic required. Terraform is…

Importing AWS EC2 resources back to Terraform

Terraform is a great Infrastructure as Code tools where it allow you to define and deploy all your resources to the public cloud such as AWS, Azure, GCP and more. Terraform is a stateful IAC tools where it will use a state file call terraform.tfstate store the state of your resources, keep track the metadata,…

Installing OpenVPN server in AWS EC2 with User data and Terraform

This is the terraform version of installing OpenVPN in the EC2 with user data, and it’s the 2nd part from the previous post to install the OpenVPN using the AWS EC2 console. Everything will be work the same but I’m using the terraform script to deploy the resources. I will use the terraform script to…

Installing OpenVPN server in AWS EC2 with User data

OpenVPN Server is one of the common and popular VPN server available in the market, I will share the installation of the OpenVPN with EC2 using the user-data to automate the installation during the boot up of the server. You may refer to the official AWS user guide about what’s User Data at https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instancedata-add-user-data.html. With…

Cloudflare Access – Secure access to internal applications without a VPN

Cloudflare Access is a new innovative products to secure access to internal applications without a VPN. It build a fence around your internal applications no longer works for your global team. Cloudflare Access replaces corporate VPN clients by putting Cloudflare’s global edge network in front of your internal applications. How’s the Cloudflare Access work is…

ELK

Installing Elastalert for ELK Stack

ELK is one of the most famous monitoring stack which come with 2 version, which is commercial version and community version, it’s allow you to store, parse and monitor text data either is log or any unstructured data. ELK is consist of 3 software which is Elastic Log Stack / Filebeat (Log transfer and transformation),…

Provisioning ACM Certificates on AWS with Terraform

AWS Certificate Manager (ACM) is a service from AWS which provide the free on-demand TLS certificate. It’s similar to the Let’s Encrypt which provide the free cert for you, but the difference is that Amazon controls the Certificate Authority (Amazon Trust Services, LLC) behind the certificates, as well as the accompanying API to manage them.…

Installing Nginx Pagespeed Module

PageSpeed is a technology from Google, designed to help a website’s performance optimizations. Faster websites offer a better user experience, boost rankings in Google and increase conversion rates. Pagespeed lets you measure and (automatically) optimize your web pages and comply with web performance best practices. Speed up your web site and boost web performance! Assume…

google.com, pub-3772983857049267, DIRECT, f08c47fec0942fa0