Category "terraform"

Terraform and tagging AWS resources from an external json file

If I had a json file like this: { "allMyTags": { "owner": "john", "department": "HR", "city": "New York" } } and my AWS provide

pip vendor certifi handle is invalid

The following may be due to the fact that I messed something regarding a SSL certificate up on my local machine? I encounter the issue during Terraform plan but

How can I invalidate AWS CloudFront Distribution cache using Terraform?

I am looking for a way to invalidate the CloudFront distribution cache using Terraform. I could not find any information in the docs. Is this possible and if so

AWS API Gateway: Why setting "application/json" mapping template for GET request is required for MOCK integration to work?

I'm setting up a mock integration for GET requests with AWS API Gateway, and wonder why it only works when the application/json request template is specified. T

bypass input values in GitHub Actions workflow to a terraform variables file

As part of provisioning google cloud resources with GitHub actions using terraform I need to bypass some input values using terraform variables file, the issue

How to automate the creation of cache disks for storage gateway with terraform?

I'm automating the creation of a storage gateway in terraform following [1], to follow the best practices of gitops of having every important infrastucture as c

getting error while trying to copy data using google_bigquery_data_transfer_config using terraform

I am trying to setup a bigquery data transfer configuration using terraform. I am using my personal gcp account. I have a setup of terraform on my laptop so tha

How to access a local using a variable in Terraform

I have the following code. mymodule variable "senses" { type = string } locals { sounds = { "cat" = "meow" "dog" = ["bark", "woof"] } } output

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