Quantcast
Channel: Terraform - HashiCorp Discuss
Browsing all 11366 articles
Browse latest View live

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 Article


How 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 Article


How 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 Article

Assign 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


How 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 Article

Issue 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 Article

Repeating 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 Article


Replacement 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 Article


Assign 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 Article

No 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 Article

Conditional 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 Article

Azure 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 Article


What 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 Article

What 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 Article


How 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 Article

Implement 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 Article


CDKTF 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 Article

CDKTF 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 Article

I'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
Browsing all 11366 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>