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

Image may be NSFW.
Clik here to view.

AutoTab resources using Terraform

Hey, I’m trying to create equivalent terraform scripts for the below CloudFormation teamplate mentioned in the below post Amazon Web Services – 16 May 16 How to Automatically Tag Amazon EC2 Resources...

View Article


Terraform anyway to simplify environment creation

I looking to see if there is an easier way to tackle a problem I’m having. I’m trying to spin up a vpn with multiple ec2 instances, and an alb. The instances are private and should only be accessed...

View Article


Confused on how to script out an Azure Sql Database

Folks, I am attempting to script out the creation of an Azure sql database using the DTU pricing model. I see azure resources for sql_database and mssql_databse and elasticpools. Basically I’ve got a...

View Article

Image may be NSFW.
Clik here to view.

Terraform Error: timeout waiting for customization to complete

Hi Team We are using terraform to create Virtual machines in vSphere vCenter, sometime we are getting below error/warnings and it’s intermittent. Could you please suggest what is causing the issue....

View Article

Image may be NSFW.
Clik here to view.

Call to function "templatefile" failed

Hi @apparentlymart , I need your help once again with terraform v0.13.0-beta3. I was checking the following snippet under Terraform12 syntax help for data "template_file" Terraform Actually i want to...

View Article


Getting the "The "for_each" value depends on resource attributes that cannot...

I’ve got the idea for a scaling rule define as follows: ############################################################################################################# # Additional schedules...

View Article

Create aws medialive resource

Hi All, I have open source Terraform v0.12.26 (provider.aws v2.70.0) installed in my machine. I am trying to create AWS MediaLive resource and AWS MediaPackage and link them together. I could not find...

View Article

Accessing the aws_instances private ip addresses from other instances

I have a aws_instance resourse defined like this: foo.tf resource "aws_instance" "foo" { count = var.instance_count ... } Then I have a my outputs like this: output.tf output "seeds" { ... value = [...

View Article


Terraform Enterprise in a multi zone environment

Hi together, we manage our infrastructure in AWS of course with Terraform. Since our needs grow and we want become more mature with regards to collaborating we plan to implement Terraform Enterprise....

View Article


Confused about variables and remote apply under VCS

We’re experimenting with TFC and have encountered a couple counterintuitive things that make me wonder if we’re using it right. I’ve searched around for clarification, but hoping someone can shed some...

View Article

Image may be NSFW.
Clik here to view.

Nested Dynamic Blocks + Modules + Complex Variable Input

As far as I can tell this should work, though I’m getting an error I am unsure how to troubleshoot. I am working with the panos provider for palo alto configuration, though that should be irrelevant...

View Article

Jenkinsfile and terraform modules in github: how to authenticate by key?

Hello, I have: main github repo with Terraform12 code module in secondary repo which is referred as source = "git@github.com:user/mod_repo?ref=v1.0.0" Jenkins 2.249 (can’t update now) a private ssh...

View Article

Destroy command suggestion/question

Hi folks, first post on the HashiCorp forums. Is there a way to stop Terraform – or require some sort of command line option – from destroying persistent data volumes that are part of a deployment...

View Article


Create terraform Iot rule and save into dynamodbv2

Hello, I’m trying to save iot rule capture into a dynamodbv2 as follow : resource “aws_iot_topic_rule” “topic_rule” { name = “$some_name” description = “description” enabled = true sql = “query’”...

View Article

How to iterate through nested objects/maps?

Background: Here is the map we are trying to iterate through: cl_vnet = { "xx.xx.1.0/24" = { subnets = { main = { application = "app1", addr_prefix = "xx.xx.1.0/25", service_endpoints = [],...

View Article


Creating a security group ingress rules from an api with Ips lists

Github publishes a list of IPs in this endpoint https://api.github.com/meta. I want to create a security group that only allows the ips specified in this endpoint....

View Article

Resource manually deleted, now cant Destroy, Plan or Apply due to it missing,...

Hello, we have an unfortunate situation where a user deleted an AWS resource which should have been locked, and now we want to restore it, however because this resource is missing, other resources...

View Article


Is using count considered a bad practice? Which are good use cases?

Hello, I’m working on a blog post highlighting the differences between count and for each. I created three users using the following code: variable "user_names_count" { default = [ "user1", "user2",...

View Article

My 25-resource Terraform Project is Taking 3 Minutes to Plan

Hi there, I have a new Terraform repo I’ve been experimenting with: https://github.com/lancejpollard/cloud I am new to Terraform, but have run into all kinds of gotchas in terms of syntax and...

View Article

Image may be NSFW.
Clik here to view.

Create terraform script for "AWS Cross-Account Support Case Dashboard"

Hi team, I want to create terraform script for “AWS Cross-Account Support Case Dashboard”. Amazon Web Services – 25 Sep 19 How to Create an AWS Cross-Account Support Case Dashboard | Amazon Web...

View Article
Browsing all 11357 articles
Browse latest View live


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