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…
Month: July 2022
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…