File tree Expand file tree Collapse file tree
quickstart/201-k8s-cluster-with-aks-applicationgateway-ingress Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11resource "random_pet" "rg-name" {
2- prefix = var. name_prefix
2+ prefix = var. resource_group_name_prefix
33}
44
5- resource "azurerm_resource_group" "default " {
6- name = random_pet. rg-name . id
7- location = var. location
5+ data "azurerm_resource_group" "rg " {
6+ name = random_pet. rg-name . id
7+ location = var. resource_group_location
88}
99
1010# Locals block for hardcoded names
@@ -18,10 +18,6 @@ locals {
1818 app_gateway_subnet_name = " appgwsubnet"
1919}
2020
21- data "azurerm_resource_group" "rg" {
22- name = var. resource_group_name
23- }
24-
2521# User Assigned Identities
2622resource "azurerm_user_assigned_identity" "testIdentity" {
2723 resource_group_name = data. azurerm_resource_group . rg . name
Original file line number Diff line number Diff line change 1- location = " <Resource group location>"
2-
31aks_service_principal_app_id = " <Service principal appId>"
42
53aks_service_principal_client_secret = " <Service principal password>"
Original file line number Diff line number Diff line change 1- variable "location" {
2- default = " eastus"
3- description = " Location of the resource."
1+ variable "resource_group_name_prefix" {
2+ default = " rg"
3+ description = " Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
4+ }
5+
6+ variable "resource_group_location" {
7+ default = " eastus"
8+ description = " Location of the resource group."
49}
510
611variable "aks_service_principal_app_id" {
You can’t perform that action at this time.
0 commit comments