Terraform/WORKSPACES/DEPLOYER/LAB-SECE-DEP05-INFRASTRUCTURE/LAB-SECE-DEP05-INFRASTRUCTURE.tfvars (200 lines of code) (raw):

########################################################################################## # # # This sample defines an standard control plane deployment with # # 1 Deployer (deployer_count = 1) # # Azure Firewall (firewall_deployment = true) # # Azure Bastion (bastion_deployment = true) # # Azure Web App (use_webapp = true) # # # ########################################################################################## # The automation supports both creating resources (greenfield) or using existing resources (brownfield) # For the greenfield scenario the automation defines default names for resources, # if there is a XXXXname variable then the name is customizable # for the brownfield scenario the Azure resource identifiers for the resources must be specified ######################################################################################### # # # Environment definitions # # # ######################################################################################### environment = "LAB" # The location/region value is a mandatory field, it is used to control where the resources are deployed location = "swedencentral" # RESOURCE GROUP # The two resource group name and arm_id can be used to control the naming and the creation of the resource group # The resourcegroup_name value is optional, it can be used to override the name of the resource group that will be provisioned # The resourcegroup_name arm_id is optional, it can be used to provide an existing resource group for the deployment #resourcegroup_name="" #resourcegroup_arm_id="" resourcegroup_tags = { Control_plane = "Sweden Central" } ######################################################################################### # # # Networking # # # ######################################################################################### # The deployment automation supports two ways of providing subnet information. # 1. Subnets are defined as part of the workload zone deployment # In this model multiple SAP System share the subnets # 2. Subnets are deployed as part of the SAP system # In this model each SAP system has its own sets of subnets # # The automation supports both creating the subnets (greenfield) or using existing subnets (brownfield) # For the greenfield scenario the subnet address prefix must be specified whereas # for the brownfield scenario the Azure resource identifier for the subnet must be specified #management_network_name="" management_network_logical_name = "DEP05" #management_network_arm_id="" management_network_address_space = "10.175.20.0/24" # management subnet # If defined these parameters control the subnet name and the subnet prefix # management_subnet_name is an optional parameter and should only be used if the default naming is not acceptable #management_subnet_name="" # management_subnet_address_prefix is a mandatory parameter if the subnets are not defined in the workload or if existing subnets are not used management_subnet_address_prefix = "10.175.20.64/28" # management_subnet_arm_id is an optional parameter that if provided specifies Azure resource identifier for the existing subnet to use #management_subnet_arm_id="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MGMT-WEEU-MGMT01-INFRASTRUCTURE/providers/Microsoft.Network/virtualNetworks/MGMT-WEEU-MGMT01-vnet/subnets/MGMT-WEEU-MGMT01-subnet_management" # management_subnet_nsg_arm_id is an optional parameter that if provided specifies Azure resource identifier for the existing network security group to use #management_subnet_nsg_arm_id="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MGMT-WEEU-MGMT01-INFRASTRUCTURE/providers/Microsoft.Network/networkSecurityGroups/MGMT-WEEU-SAP01_managementSubnet-nsg" # management_subnet_nsg_allowed_ips is an optional parameter that if provided specifies a list of allowed IP ranges for the NSG # use_private_endpoint is a boolean flag controlling if the keyvaults and storage accounts have private endpoints #use_private_endpoint=false # use_service_endpoint is a boolean flag controlling service_endpoints are used use_service_endpoint = true ######################################################################################### # # # Azure Firewall # # # ######################################################################################### # firewall_deployment is a boolean flag controlling if an Azure firewall is to be deployed in the deployer VNet firewall_deployment = true # management_firewall_subnet_arm_id is an optional parameter that if provided specifies # Azure resource identifier for the existing firewall subnet # management_firewall_subnet_arm_id= "" # management_firewall_subnet_address_prefix is a mandatory parameter management_firewall_subnet_address_prefix = "10.175.20.0/26" # firewall_rule_subnets is an optional list of subnets to be added to the Azure firewall #firewall_rule_subnets=[] # firewall_rule_allowed_ipaddresses is an optional list of IP Addresses to be added to the Azure firewall #firewall_rule_allowed_ipaddresses=[] ######################################################################################### # # # Azure Bastion # # # ######################################################################################### # bastion_deployment is a boolean flag controlling if Azure bastion is to be deployed in the deployer VNet bastion_deployment = true # management_bastion_subnet_arm_id is an optional parameter that if provided specifies Azure resource # identifier for the existing AzureBastion subnet # management_bastion_subnet_arm_id= "" # management_bastion_subnet_address_prefix is a mandatory parameter if bastion is deployed and if the subnets are not defined in the workload or if existing subnets are not used management_bastion_subnet_address_prefix = "10.175.20.128/26" ######################################################################################### # # # Azure Web App # # # ######################################################################################### # use_webapp is a boolean flag controlling if configuration Web App is to be deployed in the deployer VNet webapp_deployment = false # webapp_subnet_arm_id is an optional parameter that if provided specifies Azure resource # identifier for the existing subnet # webapp_subnet_arm_id= "" # webapp_subnet_address_prefix is a mandatory parameter if the Web App is to be deployed webapp_subnet_address_prefix = "10.175.20.80/28" ######################################################################################### # # # Deployer VM information # # # ######################################################################################### # deployer_enable_public_ip defines if the deployer virtual machines will be deployed with a public IP address deployer_enable_public_ip = true # deployer_count is an optional parameter that specifies the number of deployer VMs to be provisioned deployer_count = 1 # deployer_size is optional and defines the virtual machine SKU #deployer_size="Standard_D4ds_v4" # deployer_disk_type is optional and defines the virtual machine disk type #deployer_disk_type"="Premium_LRS" # deployer_use_DHCP is a boolean flag controlling if Azure subnet provided IP addresses should be used (true) deployer_use_DHCP = true # private_ip_address if defined will provide the IP addresses for the network interface cards #private_ip_address=[""] # # The deployer_image defines the Virtual machine image to use, if source_image_id is specified the deployment will use the custom image provided, in this case os_type must also be specified deployer_image = { type = "marketplace" os_type = "Linux" source_image_id = "" publisher = "Canonical" offer = "ubuntu-24_04-lts", sku = "server", version = "latest" } # Use this field if you are using a marketplace image that has a plan attached to it plan = { "use" = false "name" = "" "publisher" = "" "product" = "" } # deployer_diagnostics_account_arm_id defines the diagnosting storage account for the deployer # deployer_diagnostics_account_arm_id = "" # deployer_authentication_type defines the authentication type for the deployer virtual machine #deployer_authentication_type="key" # use_spn defines if the deployments are performed using Service Principals or the deployer's managed identiry, true=SPN, false=MSI use_spn = false # user_assigned_identity_id defines the user assigned identity that will be assigned to the deployers user_assigned_identity_id="/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/XXXXXXXX/providers/Microsoft.ManagedIdentity/userAssignedIdentities/xxxxxxxxxx" ######################################################################################### # # # Key Vault information # # # ######################################################################################### # These variables define the keyvault that is used to store the deployer credentials # user_keyvault_id is the Azure resource identifier for the keyvault that will contain the credentials keys #user_keyvault_id="" # deployer_private_key_secret_name if provided contains the secret name for the private key #deployer_private_key_secret_name="" # deployer_public_key_secret_name if provided contains the secret name for the public key #deployer_public_key_secret_name="" # deployer_username_secret_name if provided contains the secret name for the username #deployer_username_secret_name="" # deployer_password_secret_name if provided contains the secret name for the password #deployer_password_secret_name="" enable_purge_control_for_keyvaults = false enable_rbac_authorization_for_keyvault = true # List of object IDs to add to key vault policies" #additional_users_to_add_to_keyvault_policies=["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy"] ######################################################################################### # # # Miscellaneous settings # # # ######################################################################################### # deployer_assign_subscription_permissions is a boolean flag controlling if the deployment credential should be assigned Contribuor permissions on the subscription #deployer_assign_subscription_permissions=true # auto_configure_deployer is a boolean flag controlling if the automation should try to configure the deployer automatically # set to false if outbound internet on the deployer is not available auto_configure_deployer = true # Boolean value indicating if firewall should be enabled for key vaults and storage enable_firewall_for_keyvaults_and_storage = false # Boolean value indicating if public access should be enabled for key vaults and storage public_network_access_enabled = true # List of subnet IDs to add to storage account and key vault firewalls" #subnets_to_add_to_firewall_for_keyvaults_and_storage=["<azure_resource_id_for_subnet>"] ######################################################################################### # # # DNS Settings # # # ######################################################################################### # privatelink_dns_resourcegroup_name is the name of the resource group where the private link DNS zone is hosted #privatelink_dns_resourcegroup_name = "cpln-noeu-dns-privatelink" # privatelink_dns_subscription_id is the subscription ID where the private link DNS zone is hosted #privatelink_dns_subscription_id = "dcb2713e-5dc8-4139-a9af-9768287bbb8d" ######################################################################################### # # # Application Configuration # # # ######################################################################################### # Defines the Azure application configuration Resource id #application_configuration_id = "" # If defined, will add the Azure Application configuration to the control plane application_configuration_deployment = true