Terraform local_file resource running on CI Server
Hi, I’m using the local_file resource to create some configuration files that are them push to a git repo. This works great running locally, but from a CI Server every time the pipeline runs it...
View ArticleGoogle_app_engine_flexible_app and app.yaml
Hello. I’m very new to GCP but have worked a lot of terraform AWS. I’ve deployed an app engine app with gcloud and an app.yaml. I assumed there was a way to feed that to terraform but seems as though...
View ArticleCall to function "format" failed: unrecognized format character '\'' at offset
I want to use the format function like below format(local.nrsql , “‘abc’” , “‘cdf’”) nrsql = "FROM Metric SELECT filter(count(http.server.requests), WHERE id IN (%s) " But I am getting the error Call...
View ArticleRegarding custom provider, writing my own provider plugin
My API spec is like this : Basic CRUD, then advanced CRUD like multiple create at once, multiple delete at once. Can this feature be developed on the provider side ? 1 post - 1 participant Read full...
View ArticleDeploy an ElasticBeanStalk environemnt with custom Auto Scaling Group(ASG)?
I can deploy the beanstalk and ASG separately but cannot configure the ASG of beanstalk according to my setting.i.e. and HealthCheckGracePeroid as 1500 HealthCheckGracePeroid as 1500 using Terraform 1...
View ArticleTrying to understand input variables - tfvars/variables.tf
Terraform noob here. Quick question. We have a project where we have variables defined in variables.tf(magma/variables.tf at master · magma/magma · GitHub) and I’m trying to override the required...
View ArticleTerraform cloud init issue with openstack personalized images
Hello, Iam using terraform latest version with a shell script as cloud-init. on this shell script iam trying to create a new partition and volume group. DEVICE="/dev/vdb" DISKID=$(blkid $DEVICE | cut...
View ArticleHow to handle SSL certs where domain validation is cross account
I have a simple module which handles validating a primary, and secondary name. This works great, when the zones are in the same account. The problem I’m having now, is how do I handle when this is...
View ArticleAWS_instance User Data with For_each
I need some help or advice on using for_each and using the output in User data when creating a EC2. The code below can create multiple EC2’s, a mgt eni and attaches the ENI’s to the EC2’s. I now need...
View ArticleNew Terraform tutorial: Target resources
Hi, In a typical Terraform workflow, you will apply changes to your infrastructure all at once, and allow Terraform to perform the required changes in the right order. Occasionally you may want to...
View ArticleConfused on how helm provider is useful
It looks like any given Terraform module is limited to a single kubeconfig file. If the provider itself is limited to a single cluster, how do I deploy to multiple clusters using Terraform?? 1 post -...
View ArticleDeploying ESXi from OVF completes without network adaptor
Hey Terraform Community, I’m new to Terraform and having an issue that I’m not sure how to resolve/troubleshoot. I’m deploying an ESXi host from OVF and for unknown reason it deploys without a network...
View ArticleTerraform Azure module to associate VM's to load balancer backend pools using...
Hi Team, I have manually associated VM’s to backend pool of load balancer using IP address as shown below instead of NIC. image485×654 15.2 KB For the same configuration using terraform am not able to...
View ArticleMultiple instances in different files
Hello, I want to create and manage multiple virtual instances with Terraform So provider I use VMware vSphere. This is my current script: resorce file: ... resource "vsphere_virtual_machine" "server"...
View ArticleQuery on dynamic Reiteration cidr Subnets
I need to create dynamic subnet space and it was following an example, so in a give scenario creating 15 subnets across 3 az’s with a 27 suffix. I started here eg >> base_cidr_block =...
View ArticleUsing remote exec on multiple EC2 instances
Terraform v0.14.8 I am attempting to create multiple EC2 instances within Terraform, upload specific directories to each instances /var/tmp folder and then move those directories into an EFS mount on...
View ArticleIs a variable provider alias possible in a module call?
Hello all, I have a use case where I want to create a resource (module) in each of my AWS accounts and ideally, I don’t want to repeat the module definition all over again for each account (is...
View ArticleNew Module versions are not pushed from GitLab after changing VCS Provider in...
Hi! We have a number of modules on Terraform Cloud that are linked to repositories in our Gitlab. We had to re-create the VCS Provider in Terraform Cloud, which removed that link. We’ve now gone...
View ArticleGitHub Actions workflow w/multiple environments
I’m trying to figure out a reasonable branching strategy for GitHub Actions using Terraform with multiple environments. In my previous company, we used Atlantis and had a more traditional setup where...
View ArticleHow to use ellipsis (...) in nested for loop
Is it possible to use ellipsis in a nested for loop as shown below existing_nsg_rules = { for key, rules in data.azurerm_network_security_group.subnet_nsg : key => { for rule_key in...
View Article