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

How to iterate with for in this result set?

Hello In on API call i m getting this result : { "catalogs" = [] "compartment_id" = "ocid1.compartment.oc1..aaaaaaaarbtrtpttu4j4ju76a7qtstxgpzvqithwdsoniim7oahmt4slupba" "id" = "2020-07-29...

View Article


Image may be NSFW.
Clik here to view.

Azurerm_linux_virtual_machine getting recreated on every apply

Hello all, we are using Terraform v0.12.29 to manage a group of VMs on Azure using azurerm 2.10.0. Whenever we run “apply”, Terraform wants to recreate the VMs: grafik1539×494 18 KB It seems to me,...

View Article


Aurora cluster - aws_rds_cluster vs aws_rds_cluster_instance arguments

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

View Article

Passing User_data to EC2 Instance

Hey, Below is the sample code I got and trying to pass user_data to the EC2 instance, but facing issues. Is there anyway to get help on this? resource "aws_instance" "ec2" { ami =...

View Article

Updating Variable with Terraform Cloud API 404s

I am trying to use the API to upgrade variables, but I am getting a 404 back from the url. I tried to build the url myself, and got a 404. So then I tried pulling the list of variables from the api....

View Article


2+ developing 1 template with 1 remote state

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

View Article

Azure and TF v0.13: Error Locking State

Hello! I am attempting to move up to TF v0.13.0-rc1 and am running into some issues with acquiring the lock. terraform plan -var-file=staging/variables.tfvars Acquiring state lock. This may take a few...

View Article

Image may be NSFW.
Clik here to view.

Module versions in Terraform cloud don't seem to updating

I’m able to succesfully publish modules to our private module registry in Terraform Cloud. In the “Versions” drop down, I can see all of our semantic versioned tags up until the publish. If I tag a...

View Article


How to calculate elapsed time in terraform

Hello Is there a way to calculate the elapsed time for a resource creation time until now ? I getting some values for Oracle OCI compute nodes as : 2019-06-26 10:09:36.527 +0000 UTC in a field from a...

View Article


0.13 splat behavior

Current Terraform Version Terraform v0.13.0-rc1 Use-cases List IPs of droplets just created using a module with count. Am unsure how to access the IPs once created using the module. I tried various...

View Article

List within map attribute for Custom Elasticsearch Provider

Hi all, I’m currently building a custom Terraform plugin to provision ES clusters. I want to read in an input that contains a series of maps and lists nested inside an outer list like so: tf file:...

View Article

VM not joining windows domain from template clone

My VM i snot joining windows domain from template clone any idea? main.tf =================== Deploying VMware VM =================== Connect to VMware vSphere vCenter provider “vsphere” { user =...

View Article

Tf aws provider cannot assume role

In my aws account, I have created a role that has a policy attached to it, and the trusted policy allows my iam user to assume it. From the CLI I am able to run the sts assume-role command. However,...

View Article


EC2 Linux - multiple reboots in user_data

I have a set of configuration and installation steps that requires multiple reboots intersperse in the user_data. Is there a best practice approach to do that or should I look at pairing Terraform...

View Article

Kubernetes Persistent Volumes with DigitalOcean?

Is it possible to configure a kubernetes_persistent_volume using DigitalOcean volumes with Terraform? I can do it with a YAML file for kubectl. eg: apiVersion: v1 kind: PersistentVolumeClaim metadata:...

View Article


Terraform Destroy is not destroying the resources in Azure release pipeline

I have used Terraform extension in Azure devops pipeline and using the destroy command. I have stored the tfstate in backend azure storage and pointed the same tfstate for apply and destroy. The...

View Article

Kubernestes Deployment scripts on AWS not working

Hello community. I building an infrastructure on AWS with Terraform trying to create a Kubernestes deployment with the following Terraform scripts. //The script for the deployment provider...

View Article


Image may be NSFW.
Clik here to view.

Adding multiple vms to different availability zones

Hello I have a piece of code that is creating 2 vms in Azure, I would like each VM in a different availability zone. I have the following line set: zone = “2 + [count.index]” When i run terraform plan...

View Article

How do I scale a terraform ec2 resource?

I currently am managing some EC2 instances.and an excerpt is provider "aws" {} resource "aws_instance" "worker_node" { ami = "ami-asdfasdfagsdfgs" instance_type = "m5.xlarge" count = var.node_count...

View Article

How remove In Azure App service Plan

Hi. My task is under terraform migrate a few Azure service plans to one new plan. I faced with an issue, that terraform can’t remove the service plan, because it is using by app. I also tried remove...

View Article
Browsing all 11359 articles
Browse latest View live


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