terraform-provider-azure

azurerm_resource_group_template_deployment ignoring parameter file

和自甴很熟 提交于 2021-01-01 17:51:16
问题 I am attempting to use terraform and embedded ARM templates to permit creating a simple logic app in Azure. I have the resource block in terraform as: resource "azurerm_resource_group_template_deployment" "templateTEST" { name = "arm-Deployment" resource_group_name = azurerm_resource_group.rg.name deployment_mode = "Incremental" template_content = file("${path.module}/arm/createLogicAppsTEST.json") parameters_content = jsonencode({ logic_app_name = { value = "logic-${var.prefix}" } }) } and

How to expose an Azure Kubernetes cluster with a public IP address using Terraform

廉价感情. 提交于 2020-12-06 06:47:06
问题 I'm having trouble to expose a k8s cluster deployed on AKS with a public IP address. I'm using GitHub Actions to do the deployment. The following are my .tf and deployment.yml files; Please see below the errors I'm facing. main.tf provider "azurerm" { features {} } provider "azuread" { version = "=0.7.0" } terraform { backend "azurerm" { resource_group_name = "tstate-rg" storage_account_name = "tstateidentity11223" container_name = "tstate" access_key = "/qSJCUo..." key = "terraform.tfstate"

Use variable in Terraform remote backend

眉间皱痕 提交于 2020-08-15 12:09:26
问题 # Using a single workspace: terraform { backend "remote" { hostname = "app.terraform.io" organization = "company" workspaces { name = "my-app-prod" } } } For Terraform remote backend, would there be a way to use variable to specify the organization / workspace name instead of the hardcoded values there? The Terraform documentation didn't seem to mention anything related either. 回答1: The backend configuration documentation goes into this in some detail. The main point to note is this: Only one

Use variable in Terraform remote backend

[亡魂溺海] 提交于 2020-08-15 12:07:14
问题 # Using a single workspace: terraform { backend "remote" { hostname = "app.terraform.io" organization = "company" workspaces { name = "my-app-prod" } } } For Terraform remote backend, would there be a way to use variable to specify the organization / workspace name instead of the hardcoded values there? The Terraform documentation didn't seem to mention anything related either. 回答1: The backend configuration documentation goes into this in some detail. The main point to note is this: Only one

Use variable in Terraform remote backend

瘦欲@ 提交于 2020-08-15 12:07:12
问题 # Using a single workspace: terraform { backend "remote" { hostname = "app.terraform.io" organization = "company" workspaces { name = "my-app-prod" } } } For Terraform remote backend, would there be a way to use variable to specify the organization / workspace name instead of the hardcoded values there? The Terraform documentation didn't seem to mention anything related either. 回答1: The backend configuration documentation goes into this in some detail. The main point to note is this: Only one