Category: Terraform
Request to create Service Principals and Resource Groups for microservice in Multiple Regions
The client is planning to deploy DFMessage microservice in Canada Central and Australia East regions. As a part of this initiative, the client wants me to create the Service principals and Resource Groups as shown below: Canada Central Pre-Prod: (high priority) Region: Canada Central Subscription: app341 US PreProd Resource group: Name: app341-dfmessage-cancen-preprod-rg Service Principal: Name:…
Update tf1.3v
Install Terraform on wsl Open Ubuntu application (or your installed distro) Run the following command which will install unzip (its my preference to extract files) Navigate to the Terraform download page and grab the most recent download URL. Using the above URL, run the following commands which will download, unzip, move the binary to users…
Terraform study note: Planning and Dependencies
Planning and Dependencies When Terraform is trying to make the deployment match you configuration, it has to run through a planning process. Terraform goes through this process when you run a plan, apply or destroy. As part of the planning process, it needs to figure out the order in which to create, update, or delete…
Terraform in Azure DevOps Pipelines
Azure CLI Setup Install Azure CLI for windows: upgrade az cli version Authenticating using the Azure CLI Azure Before we get started, we need to create a resource group. A resource group is a container that holds related resources for an Azure solution. Now, create a service principle and connect to Azure DevOps. An Azure…
Terraform Certification – Load balancer
I’ve updated configuration to include variables, locals, and output. Now it’s time to update the architecture of deployment to include resiliency by adding new resources. Our current architecture is using a single subnet in a single AZ with a single EC2 instance. That’s a lot of single point of failure. To improve reliability of the…
Terraform Certification – tfvars
All the variable need a supplied values. If we want to submit values for all of these variables at the command line, use this command. Let’s create a file called terraform.tfvars and populate it with some of our non-sensitive variables and values. We can store our sensitive data in environment variables like this:
Terraform Certification – Input Variables and Outputs
Variables and Outputs Terraform can accept values as input, transform values inside a configuration, and return values as output. There’re three different concepts to consider when working with data in a Terraform Input variables (variables) : used to pass information to a Terraform configuration Local values (locals) : computed values inside the configuration that can…
Terraform Certification – What is terraform?
Terraform is an example of a declarative approach to deploying Infrastructure as Code. other core concepts are: consistency: Each time you do something, the results should be the same idempotent: If you haven’t changed anything about your code, nothing will change in the environment Push or Pull: Terraform is a push-type model, the configuration that…
Terraform Modules
A terraform file can get very large very quickly as you add more and more resource blocks. Custom modules are a great way of organizing your terraform code into logical pieces. You might have one module that handles the VPC set up, and another for EC2 instances. In this post, I will look at how…