Before proceeding, ensure that the values in the terraform.tfvars file are accurate for your environment. You may need to customize these values to match your specific configuration.
In this lab you will create a Log Analytics workspace that will be used to view container insights of your AKS Cluster
- You can find the Terraform configuration for Log Analytics here. The Terraform configuration files are used to create the Log Analytiocs workspace.
The Terraform la.tf
will:
- Use a Terraform backend to store the
.tfstate
in an Azure Storage Account - Use the
azurerm_log_analytics_workspace
Terraform resource to create a Log Analytics workspace. - Use the
azurerm_log_analytics_solution
Terraform resource to enable the Log Analytics solution ContainerInsights. - Use the
uksouth
region, but feel free to change that if you'd like
- Create the Log Analytics Workspace by running the following:
terraform init
- To initialize the working directory and pull down the providerterraform plan
- To go through a "check" and confirm the configurations are validterraform apply
- To create the resource