Quantcast
Channel: Terraform - HashiCorp Discuss
Browsing all 11391 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

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 Article


Backend 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 Article


Defining 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 Article

Terraform 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 Article

Using 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 Article


Local 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 Article

Interval 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 Article

Image may be NSFW.
Clik here to view.

Terraform 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 Article


How 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 Article


Lookup 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 Article

Terraform 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 Article

Private 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 Article

Terraform 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 Article


Use 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 Article

Image may be NSFW.
Clik here to view.

Terraform 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 Article


Image may be NSFW.
Clik here to view.

Terraform 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 Article

Running 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 Article


Using 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 Article

Dynamic 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 Article

Help 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
Browsing all 11391 articles
Browse latest View live