Azure VM Recreate Every Apply
Hi there, newish to Terraform. I’m creating a new VM via Terraform. When I rerun the plan/apply it wants to destroy and create the resource due to the private_ip_addresses variable changing. I’m...
View ArticleOptional Resource fields are not optional?
Am I right that managing only a subset of fields from Resource is not possible in Terraform? The optional fields are still being tracked even when not specified in configuration. If Terraform detects...
View ArticleAWS Security group rules delete existing rules
I have a terraform script creating Security group and security group rules , this script is provided by the product , cannot edit , if i have to write a script to update security group rules how can i...
View ArticleCredentials & syntax problem
Hi folks, I’m experiencing some difficulty with creating resources in AWS via Terraform and was hoping somebody could help. FYI, I am using: Terraform v0.12.26 provider.aws v2.67.0 My IAM user has...
View ArticleThis object has no argument, nested block, or exported attribute named when...
Hi All, Need your kind help around below issue, I am getting while using null_resource. I have created two buckets and just want to simply run a command for both the buckets with the help of null...
View ArticleBackup Azure File Storage to Block Storage
Is it possible to use Terraform for backup of Azure File Storage to Azure Block Storage on scheduled basis as well as backup based on file size as a policy? 1 post - 1 participant Read full topic
View ArticleUsing AWS Systems Manager Parameter as a variable for Windows Ec2 bootstrapping
Hi, I am wondering if there is a way to set a pre-existing AWS parameter as a variable in the variable file? I need to set the parameter as a password during the bootstrapping process for a windows...
View ArticleDynamic blocks and lookp
Using TF 0.12.20 I am trying to pass along arguments to a custom module where I use dynamic blocks. load_balancers = [{ target_group_arn = data.aws_lb_target_group.syslog.arn container_name =...
View ArticleAssigning one group to each created user
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleTerraform plan output as azure devops PR comment
I am using terraform to configure our Azure Traffic Manager profiles using it through Azure DevOps pipeline. One of the goal is to get the terraform plan command output as the PR comment. I am using...
View ArticleTerraform Cloud provider credentials
Hi! I’m just getting started with Terraform Cloud and remote execution mode. Following documentation, I need to add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY as environment variables to the...
View ArticleConditional for_each resources
Hi! I’m currently creating an array of resources using the for_each construct. Here’s an example: # variables.tf variable "sub_environments" { type = list(string) description = "List of...
View ArticleAdding AWS Accounts to AWS Organization OU
Unable to find code for adding AWS Account to AWS Organization OU. can you let us know if that is possible. 1 post - 1 participant Read full topic
View ArticleFor_each over which data structure?
I’ve attempted to get this working many, many different ways but keep falling short with the implementations. I need to grab a list of server names from a map and get the product of that list and...
View ArticleProblem with the use of JSON config syntax for a built-in function in a...
I use terraform 0.12.26 and aws provider version 2.67.0. I work locally on a linux fedora 32 computer, and run servers in AWS cloud. I hope that someone more experienced can help me with this problem....
View ArticleError in tf file created by previous Terraform version when using Terraform...
We become indebted to. To build an Azure environment, I’m trying to build it with Terraform 12 grammar. A grammar check with “terraform validate” using the files that constructed the environment a...
View ArticleUpdating Cloned VM with additional disks fails with Error: could not find...
Hi, i am using Terraform v0.12.26 and provider.vsphere v1.19.0 I’m attempting to add more disks to a cloned VM. However, i’m getting the following error when i try to apply the change:...
View ArticleUnable to run the apply command after changing the backend
i am using terraform 0.12 version. I have a root module with main.tf,variable.tf which was working fine earlier. recently we moved our state file from local to the terraform cloud as backend. we can...
View ArticleWAFv2 scope=cloudfront
Hi, I’m pretty new to Terraform and I’ve been trying to build a WAFv2 web acl with little success. I’ve got regional working ok but when I change scope=regional to cloudfront I get the following...
View ArticleDynamic Secrets Terraform Cloud / Enterprise
Are there plans to add Vault integration for dynamic secrets with TFC / TFE? Reading the docs it appears the Vault integration is only used for encrypting static variables. Is that correct? 1 post - 1...
View Article