20,231 questions
0
votes
1
answer
72
views
How to grant manager permission on service principal?
I'm creating an automation using terraform and the databricks provider.
I set up the databricks provider and with this code i create a service principal and taked the detail of my group
resource "...
0
votes
1
answer
34
views
Resource is tuple with 3 elements
I am trying to extract the virtual machine name from this output:
output "linux_virtual_machine_names" {
description = "The resource id's of all Linux Virtual Machine."
value ...
-1
votes
0
answers
38
views
Azure VMSS issue - Failed to update goal-seeking context [closed]
New to Azure, not to the cloud.
I have terraform code provisioned VMSS and it has been running few months okay.
Suddenly since last night my VMSS is failing to boot instances.
I am not using any ...
Advice
1
vote
3
replies
59
views
Schedule a Terraform destroy and apply of the same resource using Github Actions in Azure
My goal is to schedule a Cron Job using GitHub Actions to destroy and reapply the same resource at specific times — for example, apply at 8 a.m. and destroy at 5 p.m.
Based on my research, I would run ...
-1
votes
1
answer
58
views
Set Terraform Child Module Variable Values Conditionally
I have a Terraform child module for an Azure Function App. This Function App also implements an Azure Monitor Alert (referenced from another child module) and provisions a set of dedicated Action ...
-3
votes
1
answer
69
views
How do I properly define a complex for_each variable
I am trying to define a list of aws_usage_plans, using a for_each.
I am passing in this variable data:
usage_plan_configs = {
"xsmall" = {"name" = "xsmall", "...
-1
votes
1
answer
45
views
Issue with OpenTofu tests against AWS Cloudfront Distributions [closed]
I could use an assist on my opentofu tests
Here is a small snippet of my Terraform module
resource "aws_cloudfront_distribution" "main" {
price_class = "...
0
votes
1
answer
102
views
Can the GitHub Actions bot be bypassed from signing commits by the GitHub Terraform provider?
I have a workflow that automatically creates PRs and it needs to bypass the rules that require commits to be signed. I have looked at the Terraform docs for this and a bypass list looks like this:
...
0
votes
1
answer
81
views
Making cloud9 by terraform but can't find the ami
I am making cloud9 by terraform according to the article here
However this code shows the error like this
│ Error: Your query returned no results. Please change your search criteria and try again.
│
│...
0
votes
1
answer
67
views
Terraform lambda runtime management config: Fetch ALL lambda's ARN's
Hi I am working on something very simple
I am creating a lambda runtime management config to manage all my lambda. I have around 9 existing ones.
resource "aws_lambda_runtime_management_config&...
0
votes
2
answers
63
views
Returning values at different layers of a HCL object, with many nested objects
Before one asks why not change the output to be more friendly or uniform, I would if it came down to it but it will take a lot of effort to change across the board for our environment considering its ...
-1
votes
1
answer
94
views
Creating multiple Topics and Subscriptions for servicebus in Terraform
We have a requirement of creating multiple topics and subscriptions inside each individual topics in one service bus namespace, which I am able to do with the following terraform code.
for_each = for ...
-3
votes
1
answer
136
views
Why is my variable using the default value instead of the value from locals? [closed]
I'm using Terraform and noticed that one of my variables always falls back to its default value, even though I define a different value in a locals block.
Here’s what I have in variables.tf:
variable &...
-1
votes
1
answer
95
views
Produce an output from a module that using 'this' keyword
I'm trying to produce an output from a terraform child module which creates a number of subnets based on a variable (which is a map of objects).
I create subnets with:
resource "aws_subnet" &...
-3
votes
1
answer
56
views
Refactoring Nested .replace() Calls with a Reusable Function in Terraform
terraform.tfvars
resource_groups = {
app_ops_rg = {
name = "rg-{environment}-{project}-{regionalias}-{applicationname}-app"
tags = {
module = "Test"
...
-1
votes
1
answer
115
views
AWS Lambda times out when trying to access Secrets Manager
I'm trying to retrieve a secret from AWS Secrets Manager using a Lambda function, but I’m encountering a timeout error:
Response:
{
"errorMessage": "2025-07-15T13:55:13.645Z 3***8 ...
-1
votes
1
answer
57
views
Terraform deployment in localstack with out errors half the config only get deployed [closed]
So Im trying to deploy some terraform configuration into localstack. Im running it inside WSL so linux based, The problem is that for testing now the configuration in terraform creates an S3 bucket ...
0
votes
1
answer
91
views
Terraform yamldecode Fails When YAML Structure Changes
I have a YAML file structured as follows:
alerts:
la:
la1:
description: "la1"
severity: 1
resource_counter: "004"
enabled: true
ma:
ma1:...
-4
votes
1
answer
135
views
Deploying databricks with metastore / unity catalog in terraform [closed]
I'm attempting to use terraform to deploy a databricks workspace using unity catalog on a completely databricks free empty environment.
In order to use unity catalog, I need to create a metadata store ...
-1
votes
2
answers
85
views
Terraform do null resources work with depends_on [closed]
I am looking to use the count attribute on a resource to handle some conditionals in terraform. I know that, if count = 0 in a resource, it is null in terraform. What I want to know if that null ...
0
votes
0
answers
41
views
FortiManager error installing packages with terraform
I am currently trying to see the limits of Terraform in deploying configuration in FortiManager and Fortigates.
My goal is to beable to implement a webfilter on policies and install those policies and ...
-2
votes
1
answer
91
views
How to automate adding kafka acls using aws cli or terraform? [closed]
I am using terraform to create AWS MSK cluster, is it possible to define kafka acls at terraform level or can we use aws cli to add them once cluster is up?
I want to automate this and don't want ...
-4
votes
1
answer
155
views
ECS Task definition CPU setting for terraform
I have this error, it shows the error CPU is not correct
Error: creating ECS Task Definition (wb_td): ClientException: Invalid 'cpu' setting for task.
with this source below.
resource "...
-1
votes
1
answer
162
views
How do I get the Principal ID of a Azure Storage Sync in Terraform
azurerm_storage_sync does not return the Principal ID (GUID), but instead returns the standard ID (8 key); however, I need to grant this new Storage Sync Owner access to the Storage Account. How do I ...
1
vote
1
answer
119
views
How can I filter ECS tasks to just those that are running for a FIS experiment?
When putting together a Fault Injection Service experiment in AWS, I want to include all running tasks that are part of an ECS service. Being able to target all tasks in a service is pretty ...