Azurerm api management named value limitation
Hi, We’re using the azurerm_api_management_named_value to add named values inside the azurerm_api_management, but we encounter a limitation on the Terraform side. The “value” parameter only takes...
View ArticleBackend artifactory No stored state was found for the given workspace in the...
Has anyone had this error: Error: Unable to find remote state on backend.tf line 11, in data “terraform_remote_state” “foo”: 11: data “terraform_remote_state” “foo” { No stored state was found for the...
View ArticleDefining name from a variable
Hi, I wrote a few plans using TF 0.12 and have now upgraded to 0.14 but am having an issue with variables. Previously in variables.tf I was able to specify: variable "deployment_label" {} and then in...
View ArticleTerraform v0.14.3 : Using count in modules
I am using Terraform version v0.14.3. I am using count in modules to create multiple Azure resources (network interface card, VM) of the same type. Below is the parent module, calling child modules...
View ArticleUsing an environment variable as a map for common tags in a locals block
Hello all, I’ve run into a specific problem while trying to automate a tagging process in terraform. I’ve set an environment variable that is essentially a list of all the tags we’d be using for all...
View ArticleLocal variables to parse json file
Hi All, I am trying to use a local variable using jsondecode function to parse a json file. I am not sure about the code which i should use to pass the attributes for the resources. I am trying to...
View ArticleInterval and Interval_unit with aws_dlm_lifecycle_policy
Hi everyone, I am implementing some Data Lifecycle Manager policies within my AWS estate via terraform. Some of the the snapshot policies have the requirement to take an EC2 snapshot every 1 week for...
View ArticleTerraform to create lambda layer by specify arn
I’m trying to use libre office lambda layer in my lambda function : I can set this up manually from console. However, I’m not sure how to get it working in terraform. So far I have the following...
View ArticleHow to reference root module variable file to child module
Hi Team, I am new to terraform and i unable to understand some concepts. Question: How to reference root module variable file to child modules without creating multiple variable.tf file in child...
View ArticleLookup from map(string) failed
Hello, I’ve created a route table, and I would like to use mapping, however some of values inside of map is list of strings, and couldn’t find a solution to manage it. Here is the main.tf resource...
View ArticleTerraform init "Failed to query available provider packages" looking for...
Using terraform 0.14.2, running terraform init, I’m seeing Initializing provider plugins... - terraform.io/builtin/terraform is built in to Terraform - Finding latest version of hashicorp/fastly... -...
View ArticlePrivate module registry - custom implementation
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleTerraform not using s3 backend lock when executed in AWS CodeBuild
Hello, I’m using terraform to create the infrastructure of a project where terraform is executed in a container in AWS CodeBuild. When I run terraform in my development machine, I see the following...
View ArticleUse a list of configuration blocks as an argument
The Terraform resource, aws_db_proxy, has a list of auth block(s) as an argument. Below is an example from the terraform documentation. Each auth block represents a user, and each user needs a secret...
View ArticleTerraform want to recreate the entire architecture
Hello everyone. I’ve run into a bit of a problem and can’t find answers online We used to develop and deploy with Terraform in local on a Windows10 computer. Now that we’re moving the pipeline to...
View ArticleTerraform Cloud and variable management
Hello, Am I missing something or Terrafrom Cloud is not fully ready for more complex variable management ( maps, list, lists of maps etc). So far we have been running terraform via Command Line and it...
View ArticleRunning specific module
Hi. I will apologize for being a beginner with terraform. My companies terraform files is split into multiple modules. As we make changes we realize we usually need to run one perhaps 2 modules. i...
View ArticleUsing for_each in modules
I am using terraform version 0.14.3. I have a module for creating an Azure Network Interface Card, as below: resource "azurerm_network_interface" "nic" { name = var.nic_name location = var.location...
View ArticleDynamic route table routes, could not retrieve elements from list of string
I’ve faced an issue while I was converting route to dynamic route. By default I’ve 3 Availability zones, and each zone has own nat gateway, when I’m trying to use those nat gateways I received a...
View ArticleHelp with Remote backend tutorial
Hello, I am trying to work through this tutorial remote backends but I have an issue with the syntax provided by Terraform. Upon creation of my workspace I am given this code to paste into the...
View Article