Category

Terraform

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…

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.…

Deploying EC2 with Private and Public Subnet Using Terraform in AWS

Terraform always the simple and easy way for us to deploying our infrastructure over the cloud, in this post, I will deploying 2 EC2 in the public and private subnet and try to access into the private EC2 using the public bastion host. A bastion host is a special-purpose computer on a network specifically designed and configured…

Deploying VPC with Terraform

Terraform is an open-source infrastructure as code software tools created by HashiCrop and it enables user to define and provisioning a datacenter infrastructure using high-level configuration language which is know as HashiCorp Configuration Language (HCL) or optionally you can using JSON. Terraform is platform independent tools where you can use it to code for infrastructure…

google.com, pub-3772983857049267, DIRECT, f08c47fec0942fa0