Infrastructure as code

Terraform Terragrunt

Terraform Terragrunt Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform refresh. https://cloudaffaire.com/terraform-refresh/ In this blog post, we will discuss terraform terragrunt. What is terraform terragrunt? Terragrunt is a thin wrapper for Terraform that provides extra tools for keeping your Terraform configurations DRY, working with multiple Terraform modules, and managing remote state. Terragrunt supports all terraform commands with additional features. To get more details on…

Comments Off on Terraform Terragrunt

Terraform Refresh

Terraform Refresh Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform import. https://cloudaffaire.com/terraform-import/ In this blog post, we will discuss terraform refresh. The terraform refresh command is used to reconcile the state Terraform knows about (via its state file) with the real-world infrastructure. This can be used to detect any drift from the last-known state, and to update the state file. This does not modify infrastructure but…

Comments Off on Terraform Refresh

Terraform Import

Terraform Import Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform locals. https://cloudaffaire.com/terraform-locals/ In this blog post, we will discuss terraform import. What is terraform import? You can use terraform import to import your current existing infrastructure. This allows you to take resources you've created by some other means and bring it under Terraform management. This is a great way to slowly transition infrastructure to…

2 Comments

Terraform Locals

Terraform Locals Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform backends. https://cloudaffaire.com/terraform-backends/ In this blog post, we will discuss terraform locals. What is terraform local? The local block defines one or more local variables within a module. Comparing modules to functions in a traditional programming language, if input variables are analogous to function arguments and outputs values are analogous to function return values, then local…

Comments Off on Terraform Locals

Terraform Backends

Terraform Backends Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform workspaces. https://cloudaffaire.com/terraform-workspace/ In this blog post, we will discuss terraform backends. What is terraform backends? A backend in Terraform determines how state is loaded and how an operation such as apply is executed. This abstraction enables non-local file state storage, remote execution, etc. By default, Terraform uses the local backend, but you can configure…

Comments Off on Terraform Backends

Terraform Workspace

Terraform Workspace Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform expressions. https://cloudaffaire.com/terraform-expressions/ In this blog post, we will discuss terraform workspace. What is terraform workspace? Each Terraform configuration has an associated backend that defines how operations are executed and where persistent data such as the Terraform state are stored. The persistent data stored in the backend belongs to a workspace. Initially, the backend has…

Comments Off on Terraform Workspace

Terraform Expressions

Terraform Expressions Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform in-built functions. https://cloudaffaire.com/terraform-functions/ In this blog post, we will discuss terraform expressions. Expressions are used to refer to or compute values within a configuration. The simplest expressions are just literal values, like "hello" or 5, but the Terraform language also allows more complex expressions such as references to data exported by resources, arithmetic, conditional evaluation, and a number…

Comments Off on Terraform Expressions

Terraform Functions

Terraform Functions Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform modules registry. https://cloudaffaire.com/terraform-modules-registry/ In this blog post, we will discuss terraform functions. Terraform language includes a number of built-in functions that you can call from within expressions to transform and combine values. The general syntax for function calls is a function name followed by comma-separated arguments in parentheses [crayon-651d04cc9496d275917356/] Next, we are going to…

Comments Off on Terraform Functions

Terraform Modules Registry

Terraform modules registry Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed terraform modules. https://cloudaffaire.com/terraform-modules/ In this blog post, we will discuss terraform modules registry and will use terraform community-supported modules to create a vpc. Terraform has a enrich community that provides free modules for the general public. Instead of creating your own module from scratch, you can use these modules to deploy your infrastructure. You…

Comments Off on Terraform Modules Registry

Terraform Modules

Terraform modules Hello Everyone Welcome to CloudAffaire and this is Debjeet. In the last blog post, we have discussed how to deploy an AWS LAMP stack using terraform. https://cloudaffaire.com/how-to-deploy-a-lamp-stack-in-aws-using-terraform/ In this blog post, we will discuss modules in terraform. What are modules in terraform? A module is a container for multiple resources that are used together. Every Terraform configuration has at least one module, known as its root module, which consists of the resources…

Comments Off on Terraform Modules