Skip to main content

Posts

Terraform: Understanding Desired & Current State

In this post, we will learn in detail what is terraform desired and current state. Terraform’s responsibility is to create/update/destroy infrastructure resources to match the desired state as described in the configuration. Desired State: For example: If our desired state is as below resource "aws_instance" "myec2" { ami = "ami-0ca285d4c2cda3300" instance_type = "t2.medium" } This should result in an AWS EC2 t2.medium instance. The code you saw above is the desired state that we want. Current State: The current state is the actual state of a resource that is deployed. For example: If our desired state is as below resource "aws_instance" "myec2" { ami = "ami-0ca285d4c2cda3300" instance_type = "t2.medium" } our desired state is t2.medium instance but let’s say the current instance running is t2.micro. So it means our desired state and the current state is not matching. Try it out

Terraform - 101

In this post, we will learn the basics of Terraform. We will launch a AWS EC2 instance using terraform. What is Terraform? HashiCorp Terraform is an open source infrastructure as code ( IaC ) software tool that allows DevOps engineers to programmatically provision the physical resources an application requires to run. Read more here:   https://www.terraform.io/intro Prerequisite: For this tutorial, you will need. AWS Account Download and install Terraform . Let’s start Log in to AWS and create an IAM Role which we will use with terraform. Get the access_key and access_secret this is required. Create a new project directory. Inside the directory create a file   ec2.tf   and past the following code. provider "aws" { region = "us-west-2" access_key = "<YOUR_ACCESS_KEY>" secret_key = "<YOUR_SECRET_KEY>" } resource "aws_instance" "myec2" { ami = "ami-0ca285d4c2cda3300" instance_type =

Building a SaaS

  Building a SaaS Introduction There's a lot of talk about how SaaS is the future, and I agree with that. If you're looking to start a side hustle or even a full-time business, you should definitely consider building a SaaS! In this guide, I'm going to show you why SaaS is such an exciting domain, how to get started building one, what kind of things work well in this space (and what doesn't), and some great ways to validate your idea before investing time and money into it. Let's get started! Why to build a SaaS Building a SaaS is an easy way to get users, funding and a job. You want to build a product that solves a problem. You can do this with apps and websites, but SaaS is especially suited for this. You don't have to worry about hosting or maintenance because the customer will pay you for it. It's also an easy way to get users because all you need is one person on your team who knows how to talk about your product with potential customers and convince th

How to mine pancake swap using your Laptop/Desktop

In this post, we will talk about how you can mine pancake swap using your laptop or desktop. What is pancake swap you ask? Pancakeswap is a decentralizaed DEX where you can Trade, earn, and win crypto on the most popular decentralized platform in the galaxy, you can Trade any token on Binance Smart Chain in seconds and you can earn passive income with your CAKE tokens. You can read more about it from  https://pancakeswap.finance/ Get Started! Step I: Getting a crypto wallet You can start with  Metamask  as a crypto wallet. Go ahead and download the Metamask as a chrome extension. Download Link:  https://metamask.io/download.html Once installed let's set up the Metamask account. Metamask Get Started Screen Click on  Get Started  button, and you should see the following screen. Metamask create wallet screen Click on  Create a Wallet  button. Metamask I Agree Screen Click on  I Agree  button. Metamask create password Provide a strong password and click  Create  button. Metamask Secure