Category "terraform"

How to get subnet_id of ec2 instances in AWS using Terraform?

Suppose we have some ec2 instances in AWS. How can we get subnet_ids of these ec2s via Terraform?

Multiple values in EMR Cluster Configuration template

Within my EMR module I have a template that is deployed for the cluster configuration, within this template are all the cluster configuration requirements for t

view Terraform output from module using for_each and toset

i have a simple terraform script which makes use of a module, the script creates multiple s3 buckets: main.tf: variable "bucket_name"{ type = list descr

AzureRM Automation DSC Configuration

I'm trying to configure Azure DSC Configuration, but I am running into two issues. I continue to get this error message Error = 'invalid character 'c' looking f

how to use aws secret manager values of a postgres database in terraform ecs task definition

I have the settings.py file below of a django application using terraform , docker compose and im trying to get the value of the database stored in aws secret m

How to solve Error creating Service: googleapi: Error 403: Permission 'iam.serviceaccounts.actAs' denied on service account

I've been trying to create a public cloud run invoker policy and bind that to my cb_app cloud run service so that it can be exposed. I've created a custom servi

Error 403: Permission iam.serviceAccounts.create is required to perform this operation on project projects/, forbidden

I am trying to create GKE cluster from terraform. I have an existing service account and I don't want to create any new service account instead use the one whic

Terraform plan fails due to content argument missing in local_file resource

I have been testing out something using the terraform for_each loop method and ran into this error with the local_file resource. $ cat main.tf resource "local_

How to get an error code from Terraform Apply

I need to know how to get an error code and possibly the error from a terraform apply task into a powershell variable - i am sure this is possible but I cannot

Anyone have good examples of Terraform getting a remote json and assigning TF variables as a module to be consumed by multipe .tf projects?

So I'm looking for some good examples of a module where I can remotely grab a json file and assign TF variables inside of a module to be consumed by several dif

Artifact's permissions issue with terrafrom

I am trying to create a service account using terraform and I also want to apply multiple permissions to that account using terraform. # create artifact registe

Unable to modify Azure VMSS reference image to an image without data disks

My Azure VMSS is deployed successfully and operating as expected. It uses an Azure Compute Gallery reference image (which includes both an OS disk, and 1x Data

Azure terraform import error, unable to import resource

This is my module structure However, when I am trying to import this resource I am getting below error, what could be the reason? Module: resource "azurerm_re

Error setting access control for Path using terraform module "azurerm_storage_data_lake_gen2_path"

im trying to add new AD Object ID in ACL using ace block for an already existing subfolders inside the azure datalake container using terraform code and im gett

How to skip for_each loop if key does not exist in terraform

My problem statement is simple but I am not able to find a solution anywhere on the internet. I have users list as locals: // users locals { allUsers = {

Setting Azure AD Microsoft Graph Email API/Permission in Terraform

I am provisioning some Azure infrastructure using Terraform. Included in the setup requirement is some configuration of an Azure AD registered app and this requ

Load local CSV file into BigQuery table with Terraform?

I'm new to terraform. Is it possible to load the content of a CSV file into a BigQuery table without uploading it to GCS? I've studied the document below, but t

Terraform Activity Log Alerts Status Field

I'm in the process of recreating our company's alerts in Terraform after they were originally created manually. I have been looking into the JSON of each alert

Create azure Action group with azure terraform with json format

Hi i am trying to create "azurerm_monitor_action_group" based on json format i have github_link please go through the github link and update me changes which i

Terraform virtual machine extension doesn't run as expected

maybe someone can help me with my situation. Scenerio: I created a terraform script which create a windows 10 Virtual machine in Azure. At the end the terraform