Category

EC2

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…

Accessing private EC2 using the bastion host/jump host

This post is continuous post from the previous post – Deploying EC2 with Private and Public Subnet Using Terraform in AWS. Bastion hosts are instances that sit within your public subnet and are typically accessed using the SSH or RDP. The primary role for the bastion host is that it’s act as the “jump” server…

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…

Using AWS CloudFormation to start/stop EC2/RDS instance

AWS getting more popular nowadays where more and more company moving their workload on the AWS cloud platform including the development and UAT environment. Normally development and UAT environment only use by the programmer or staff during the working hour which around 8 to 12 hours per day excluding the public holiday and weekend. Let’s…

Increase disk space on Linux EC2

You can attach an EBS volume as another device (ex. /dev/sdf) to an instance for more disk space. Once you have a mount point set in Linux OS, you can copy your website files there and point the web service config to point to that directory for the website. As another option, you can expand…

google.com, pub-3772983857049267, DIRECT, f08c47fec0942fa0