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

Terraform for_each invalid index

Hello guys. Sorry to bother but I have this issue and its taking me over a day to figure out the issue. The aim of this project is to automate the creation of a azure keyvaul(with a key), x number of...

View Article


Unable to set null value in TFE workspace terraform variable

Unable to set null value in terraform enterprise workspace variable rules = [{“blob-types” = [“blockBlob”],“delete-after-days-since-creation-greater-than” =...

View Article


How to purge an unused old provider in a lock file

Hello, I am using Terraform For Github with terraform-github-provider and I saw the below message when I executed terraform init -upgrade. Warning: Additional provider information from registry The...

View Article

Conditional empty object in resource

I’m trying to add an ON/OFF toggle for an object value passed as variable with Terraform v0.12.30: module "my_module" { log_configuration = local.booleanValue ? {} : { logDriver = "awslogs" options =...

View Article

Terraform Plan Data Source Refresh Output

Greetings! Something I noticed around terraform 0.13 or terraform 0.14, when I do a plan, it’s outputting data source updates, such as… $ terraform plan ... An execution plan has been generated and is...

View Article


Terraform update access policy azure

Hello guys. I am facing this issue with terraform automation. I have a for_each to loop through a map and generate access policies for a azure key vaul as follow: resource...

View Article

Template_file dynamic vars

I’m wondering if it’s possible to be able to build a vars dynamically in the template_file. I have not seen anything on it and everything from for, for_each has not worked for me using a map(string)....

View Article

Terraform For each Conditional check

Team, I have a input json which is having some environmental details in the form of map. "env" : { "dev":{ "backendAppId" : "XXXXXXXXXXXXXXXXXXXXX", "backendServiceUrl" :"https://dev-url", "roleName"...

View Article


How to hide secrets when using an ARM template

TF version: 0.12.26 I’m trying to pass secrets from Vault to a template file using the templatefile() method, as part of an ARM template deployment. The resulting template, including the secrets are...

View Article


GCP Using Compute Engine sole-tenant nodes in GKE

I am looking for terraform code to use sole tenant nodes in GKE cluster. I found the below reference on Google Cloud Docs, but I am unable to find the code in terraform....

View Article

Terraform v0.14.9 released

Hi all, Today we’ve released the next v0.14 minor release, v0.14.9. This contains one fix relevant to migrating existing state to a new workspace in Terraform Cloud. The changelog is here: github.com...

View Article

No dependencies in state after importing resources

How do I import a resource while also including dependencies? If I specify an attribute from another resource, and then import it by id, there is no dependency that shows up in state. My use case is...

View Article

Select particular map element based on environment name

I have a json file which is having a map of environments. “env” : { "dev":{ "backendAppId" : "2a154e74-9ca3-40a5-b1fb-1233444", "backendServiceUrl" :"https://url", "roleName" :"Dev.Access" }, "dit":{...

View Article


Ignoring attributes not in the configuration

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic

View Article

Best practice when using Terraform Cloud within an AWS Organization using...

With the AWS guidance to separate environments into separate AWS accounts and the release of AWS Control Tower which makes setting up the multiple accounts with self-provisioning of new accounts...

View Article


Image may be NSFW.
Clik here to view.

Terraform Init: Error: Failed to query available provider packages

Hi, I am getting this error when running ‘terraform init’ Terraform Init: Error: Failed to query available provider packages This only occurs when I have prepackaged providers using terraform-bundle...

View Article

Error while importing aws_backup_selection

Trying to do terraform import of “aws_backup_selection” “terraform import aws_backup_selection.example plan-id|selection-id” command taking pipe (“|”) symbol as a command separator and hence there is...

View Article


How to manage multiple instances of the same setup?

A common workflow when developing applications is to pass all changes through a sequence of environments. A common pattern might be: Development Test QA Production Now an important feature of this is...

View Article

ECS autoscaling

Hi all, i am trying to find a solution to my problem. I have an ecs cluster that has only one task. What i want to do is to set the desired_task to 0 at night and every morning go back to 1. Is there...

View Article

Exporting Values to CSV after Creation

I have following code which creates ACI tenants from a CSV file: terraform { required_providers { aci = { source = “CiscoDevNet/aci” } } } User Creds variable “user” { description = “Login...

View Article
Browsing all 11508 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>