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 ArticleTerraform 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 ArticleConfused 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 ArticleTerraform 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 ArticleCall 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 ArticleGetting 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 ArticleCreate 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 ArticleAccessing 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 ArticleTerraform 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 ArticleConfused 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 ArticleNested 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 ArticleJenkinsfile 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 ArticleDestroy 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 ArticleCreate 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 ArticleHow 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 ArticleCreating 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 ArticleResource 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 ArticleIs 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 ArticleMy 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 ArticleCreate 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