Starting k8s cluster && creating deployments in same apply
Hi all, I’m attempting to use terraform to both create a gke cluster and start up kubernetes deployments/statefulsets/etc. I’d like to be able to do the entire thing in one apply statement without...
View ArticleTerraform Cloud Backend configuration?
In order to avoid hard coding backend configurations, in TF it’s possible to use -backend-config="KEY=VALUE". Is there some equivalent way to avoid this in TFC? 1 post - 1 participant Read full topic
View ArticleNo stored state was found for the given workspace in the given backend
I have a few regions that each have remote state stored in them, and a few regions that lack that remote state. I’m trying to figure out a way to ignore the regions that lack that remote state, but I...
View ArticleCodependent values across different modules?
I’m trying to bring together three Terraform modules° that comprise a webapp. Separately the modules deploy OK, and my goal now is to arrange things so there’s one terraform apply to run. A problem...
View ArticleMongoDB on GCP without MongoDB Atlas
Hi, I’m new to Terraform and struggle setting up a MongoDB Replica Set on GCP. Without Terraform, the easiest way would probably be to use e.g. the Bitnami MongoDB Replica Set on the GCE Marketplace....
View ArticleTrying to import Runscope tests using Runscope provider
Hi, I’m trying to import Runscope tests using Runscope provider but could not find an option from the document: https://www.terraform.io/docs/providers/runscope/index.html. I can only see option to...
View ArticleNull_resource Powershell
So currently the Azure provider does not include the ability to create Cost alerts for resources (feature is in preview). The azure powershell module does provide methods and cmdlets to create and...
View ArticleUsing for, foreach to declare multiple resources
I am trying to create a module that creates an EC2 instance with a variable number of attached volumes. The volumes need to be declared as separate resources and become attached to the instance via...
View ArticlePausing apply runs when applying modules
Hi, Is there a possibility to pause after a module is applied and get the output data before proceeding to the next module ? I would like pause on 1st run since the module creates keys that i need for...
View ArticleDynamic data block using feature flag?
Hello all! I’d like to add a data block to find an aws security group using a feature flag/var, if the variable is false, then the security group does not get added. Currently I have something like...
View ArticleTranposing a Map of Maps
Hi, I’ve got a map of Azure AD users (data.azuread_user) which looks like a consecutive bunch of these: "XXXXX-XXXXX-XXXXX-XXXXX" = { "account_enabled" = true "display_name" = "Poppa Smurf" "id" =...
View ArticlePost apply status on PR merge to GitHub
The VCS integration is pretty nice, both with auto-apply and manual apply on push. Is there a way to post the apply result back to a GitHub PR once it’s merged? Would be nice to see the result, esp...
View ArticleUse local provider instead from providers repository
Hello I’m trying write some feature to the vsphere provider. I have local version and I want to use version with my changes instead of original version. How can I do this? Because terraform init...
View ArticleJSON plan output data missing?
Hi All, I am experimenting with using the JSON representation of terraform plans and wanted to confirm something. I have noticed if there is a nested structure such as this in the plan output...
View ArticleInstall error: SHA sum does not match
I have installed the HashiCorp Terraform extension from VSCode marketplace, but when I enable the extension in the workspace, this error is shown: Install error: SHA sum for...
View ArticleTerraform refresh
Hello. I have lost my terraform state files, I’ve tried to use refresh to get a new one but no luck . Is it possible to somehow tell terraform to scan my current infrastructure and to recreate...
View ArticleHow to use output value form one folder to another folder
Hey, I have a two folder structure named as “alb” and “cloudfront” I have to use the output value of “alb” dns_name in “cloudfront” main.tf file as input, because I have to update the dns value in...
View ArticleTerrraform For each example
Hi, I have the following code data "aws_nat_gateway" "shoot_nat_gateway_z0" { vpc_id = element(tolist(data.aws_vpcs.shoot_vpc_id.ids), 0) tags = { "Name" = "test-natgw-z0" } } data "aws_nat_gateway"...
View ArticlePrefix is being ignored?
Hey there, I’m a bit new to Terraform/Terraform Cloud so please bear with me. In my code I have a backend block defined as such: terraform { backend "remote" { organization = "myorg" workspaces {...
View ArticleLooping over google_secret_manager_secret to create secrets fails
Not sure this should be here on with the google provider. If I have a series of locals defined: locals { exports = { "test-secret1" = { name = "test-secret", object = "secret data" } "test-secret2" =...
View Article