Category "terraform"

How to add an ssh key to an GCP instance using terraform?

So I have a terraform script that creates instances in Google Cloud Platform, I want to be able to have my terraform script also add my ssh key to the instances

Terraform: modules + output from for_each

I have a Terraform script using modules. I want to create multiple resources so I'm using the for_each method. Below is my variable configuration: variable brid

How to make terraform delete an EKS cluster including the AWS resources created by kubernetes?

I use terraform to create an environment in AWS. The environment also contains a EKS cluster, which integrates in AWS and creates some resources there. (For exa

Terraform error refreshing state access denied

I'm using gitbucket for both my repository and for pipelines. I have a terraform config file with a remote state configured which runs fine on my local machine

Azure + Terraform + Grabbing a variable and passing it along

Hopefully someone can push me in the right direction. I have a Terraform plan that currently stands up a Linux VM in Azure. I am attempting to run a bash script

Terraform how to output object id that were created using count

I have a terraform module that creates 2 subnets. I need somehow to get the output for each subnet. When using the [count.index] as part of the output block I'm

Quotation causing error in ETL with terraform

I'm trying to convert my data from csv to parquet while performing cleansing. I keep getting an error when moving my data from one bucket to the next! I figured

How can I name eks worker nodes provisioned with terraform?

I am using terraform 12.20.0 and I have provisioned an EKS cluster with 2 node groups. How can I add name tags to EKS node workers according to their node group

Azure Databricks workspace using terraform

Trying to create Databricks workspace using terraform but unsupported arguments: resource "azurerm_databricks_workspace" "workspace" { name = "

How to check if string contains a substring in terraform interpolation?

How do you check if a terraform string contains another string? For example, I want to treat terraform workspaces with "tmp" in the name specially (e.g. allowi

Terraform: Using versioned modules stored in AWS CodeCommit

Currently have a repository for terraform modules stored in AWS CodeCommit. Between Dev and Prod we want to use the same repository for the modules but be able

terraform copy/upload files to aws ec2 instance

We have cronjob and shell script which we want to copy or upload to aws ec2 instance while creating instance using terraform. we tried file provisioner : bu

How can I create route path in terraform for AWS apigateway version2?

I am using terraform to create API Gateway version2 on AWS. By looking at the page: https://www.terraform.io/docs/providers/aws/r/apigatewayv2_route.html, it do

AWS - x-real-ip is ip of nginx-ingress-controller

I currently have the following problem. I have a backend that is behind an nginx-ingress controller used as load balancer in aws. Usually i should get the users

Terraform AWS Provider Error: Value for unconfigurable attribute. Can't configure a value for "acl": its value will be decided automatically

Just today, whenever I run terraform apply, I see an error something like this: Can't configure a value for "lifecycle_rule": its value will be decided automati

Module with multiple providers

I have a question regarding the following. I am using terraform with fortios provider tree: these are my providers in the root-prod: provider "fortios" { hos

Terraform EKS specify node-role.kubernetes.io label on node group

In the terraform aws_eks_node_group resource I can't set : labels = { "node-role.kubernetes.io/others" = "other" } as AWS complains labels key should not c

What is the correct way to setup multiple logically organized sub folders in a terraform repo?

Currently I am working on a infrastructure in azure that comprises of the following: resource group application gateway app service etc everything I have is in

Error launching source instance: UnauthorizedOperation: You are not authorized to perform this operation

I am trying to lunch EC2 instance by using Terraform and I am getting the following error: Error launching source instance: UnauthorizedOperation: You are not

Databricks Instance Profile Creation Failure - "AWS error: You are not authorized to perform this operation"

I'm trying to create a databricks instance profile for use with a previously provisioned workspace and getting the following error when running terraform apply: