20,192 questions
Score of 0
2 answers
93 views
Encoding XML in Terraform
When building an XML string in Terraform like this
<set-header name="ApiKey" exists-action="override">
<value>${var.my_key}</value>
</set-header>
I ...
Score of -1
1 answer
97 views
Terraform Azure Container Registry task keeps failing [closed]
So, I am trying to create a scheduled azurerm_container_registry_task with latest terraform, and testing it by running it immediately from cloud shell.
resource "azurerm_container_registry_task&...
Score of -1
1 answer
87 views
Errors finding/importing Role Assignment ID
I am getting the following error:
module.azure-prdsvc-terraform-roleassignment.azurerm_role_assignment.this: Creating...
╷
│ Error: unexpected status 409 (409 Conflict) with error: ...
Best practices
0
votes
2
replies
80
views
To store bootstrap folder terraform state to S3 backend with migration approach
I have been working on a project to automate the AWS infrastructure with Terraform. Initially, I created two folders (bootstrap and live).
Below is the Bootstrap folder structure.
enter image ...
Advice
0
votes
0
replies
113
views
Configuring Content Understanding in Microsoft Foundry via Terraform?
Microsoft Foundry has a tool called Content Understanding which is part of the so-called Foundry Tools.
I'm managing my infrastructure via Terraform. However, I'm struggling to configure Content ...
Score of 0
1 answer
138 views
Terraform errors with "provider_config is not a supported block" for databricks_rfa_access_request_destinations
I am trying to create a databricks_rfa_access_request_destinations resource in Terraform, but I'm encountering an error: provider_config is not a supported block.
My goal is to dynamically assign a ...
Score of 0
2 answers
72 views
boot_devices in terraform script not working [closed]
I am using the following snipplet to create a simple vm on libvirt
libvirt = {
source = "dmacvicar/libvirt"
version = "~> 0.9.7"
}
.....
resource "...
Score of 0
1 answer
75 views
TF data "archive_file" with depends_on still evaluates source_dir during plan
Environment: Terraform 1.14, archive provider 2.7.1
I have a Lambda packaging pipeline in Terraform where:
null_resource runs a local-exec provisioner to pip install Python dependencies into a build ...
Best practices
0
votes
2
replies
105
views
How to store Google Cloud Run config in version control: Terraform or Kubernetes?
At work we use Google Cloud Run (a wrapper around Knative).
All our infrastructure is provisioned via Terraform. We provision a Cloud Run service via Terraform in the following way:
resource "...
Advice
0
votes
1
replies
58
views
Accessing terraform variables from helm configuration
I am using terraform and helm to deploy a container using a framework setup by another team.
I would like to access one if the terraform variables and put it in an environment variable for the service ...
Score of -2
1 answer
98 views
Terraform Dynamic loop creates only last entry in list
I am trying to add pci devices in a loop in Terraform. It looks like only the laast entry in the list is added.
I have as variables:
proxmox:
add_pci_devices: ...
Score of 0
1 answer
89 views
Tag Validation CloudFormation hook
I have following tagging policy defined, it's deployed to the org management account:
resource "aws_organizations_policy" "poc_tag_policy" {
name = "OrganizationPOCTagPolicy&...
Score of -1
1 answer
96 views
Can terraform resource arguments be used as attributes?
In Terraform/OpenTofu/HCL does every resource allow the arguments (specified in the resource block) to be accessed as attributes (by other dependant resources)?
If so, does Terraform/OpenTofu still ...
Best practices
0
votes
1
replies
46
views
Terraform Plugin Framework: Can terraform-plugin-docs automatically include defaults, ForceNew, or sensitive?
I’m developing a Terraform provider using the Terraform Plugin Framework and generating docs with terraform-plugin-docs.
The documents generate correctly, but I’m trying to avoid manually duplicating ...
Score of -1
1 answer
103 views
Conditionally merge a map of objects in Terraform
I have a map of objects, and I want to filter the objects into a new map based on another variable. I think this should be fairly simple, but I get an error when using merge (which I assumed would be ...