How to migrate a Terraform workspace's backend github Enterprise repository...
Hello, we are planning to migrate the TF file repositories from GitHub on-premise enterprise server to github.com. These repositories are tagged to individual Terraform enterprise workspaces. Can...
View ArticleHow to keep resource address after using count condition
Hi support, We already have resources created for all of dev, qa, and prod environments. Now we want to destroy dev and qa instances, but keep prod ones. So, I added condition count = contains(["dev",...
View ArticleHow to configure Github actions to store terraform state in one account and...
I have the below github actions workflow: - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v1 with: aws-region: 'us-east-1' role-to-assume: 'assume_role_for_account_A"...
View ArticleAssign a name of a variable based on another variable
I am looking into an existing pipeline using Gitlab and Terraform. Basically what it comes down to - I have a variable passed from the gitlab-ci.yml ( called TF_VAR_x - this is actually generated from...
View ArticleHow to create a Makefile with a templatefile?
Hello, I am trying the create the following Makefile locally on a server created through terraform, template user_data.sh.tpl creates a user_data shell script created at the start of the server. One...
View ArticleHow to implement "encryption_at_host_enabled" ussing terraform
I am implementing “encryption_at_host_enabled”, inside my vm for os-disk and data_disk. But while getting the plan, I am getting Error: Unsupported argument on main.tf line 73, in resource...
View ArticleIssue with federated credentials for pull requests via github actions
Unsure if there are new requirements for my app registration for terraform to work on a pull request, but we are getting this error suddenly when including tfplan for our pull requests. We confirmed...
View ArticleRepeating making VMs on proxmox
I use proxmox and I use template to run VMs on proxmox I have this is my proxmoxserver.tf module "mysql" { source = "./modules/proxmox_vm" name = "mysql" cpu_cores = 1 memory = 1024 storage_size = 25...
View ArticleReplacement for overwrite=true in aws_ssm_parameter#database_url
Since the overwrite attribute is deprecated in aws_ssm_parameter#database_url, I am looking for its replacement. I have added: lifecycle { ignore_changes = [ value ] } When I add update block, I get...
View ArticleAssign a name of a variable based on another variable
I am looking into an existing pipeline using Gitlab and Terraform. Basically what it comes down to - I have a variable passed from the gitlab-ci.yml ( called TF_VAR_x - this is actually generated from...
View ArticleNo explicit declaration for local provider
I saw the following output in terraform plan where terraform is upgraded from 0.13.7 to 1.7.2: Terraform has compared your real infrastructure against your configuration and found no differences, so...
View ArticleConditional Execution of Module using Count
We are getting very strange issue while using count in conjunction with Module. Below code doesn’t instantiate the module even if both the variable values are matching, we tried to assign static value...
View ArticleAzure Purview Account Data Curator and Data Reader Access
Hello Folks! I was working on the Azure Purview account terraform module. While setting up the Root collection access. I couldn’t find the powershell command for both the roles as mentioned below....
View ArticleWhat experience best prepares you for the Terraform Associate 003 exam
I’m considering taking the Terraform Associate exam and want to ensure I have the right experience to be well-prepared. 1 post - 1 participant Read full topic
View ArticleWhat is the CDKTF V1 Roadmap?
Hi, Is there a roadmap or plan for reaching cdktf v1 stable? What does that look like? Thanks for the insight. 1 post - 1 participant Read full topic
View ArticleHow to mock a remote call so the Internet is not required during testing
I think my question is rather simple. I want to define some Terraform tests using mock_provider. Of course, I don’t want those provider to actually make remote calls (thus requiring the Internet). I...
View ArticleImplement central logging with terraform
Hi all. Terraform newbie here. I have a use-case where i want to create a module to implement central logging using AWS’s cloudwatch Observability Access Manager feature. I have the module’s main.tf...
View ArticleCDKTF can't pass entire TerraformHclModule to another, need a output from...
I have these 2 modules in the same stack, same constructor. Example: const networkData = new TerraformHclModule(this, "network_data", { source: "git::https://project@dev.azure.com/repo/tf//some",...
View ArticleCDKTF addMoveTarget() or moveTo() for Module
I know there are these functions for resources. It seems they are not working for module. new S3Bucket(this, "test-bucket-move-to", { bucket: "move-bucket-name", }).addMoveTarget("move-s3"); new...
View ArticleI'm trying to grant access to existing schema using terraform but getting...
I’m trying to grant access to existing schema using terraform but getting error like cannot create grant: GetPermission invalid schema name: ‘testing’ 1 post - 1 participant Read full topic
View Article