Category "terraform"

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:

Terraform : Init

I have changed the version of the Terraform provider to get through an error and this has caused another one. I am using Azure Devops pipeline to build an Azure

Terraform - Use of environment variables in TF files

I would like to use environment variables in my TF files. How can I mention them in those files? I use Terraform cloud and define the variables in the environm

What is the AWS Service Principal value for stepfunction?

I'm writing the terraform for creating an IAM role for AWS StepFunctions. What should be the value for Principal in assume_role_policy { "Version": "2012-

Passing multiple provider aliases to a module in terraform 0.12.13

I'm building code that needs to talk to two different AWS accounts, which the documentation says should work. This worked under 0.11.14 In the main, in my pro

Terraform - refactoring modules: Error: Provider configuration not present

I'm refactoring some Terraform modules and am getting: Error: Provider configuration not present To work with module.my_module.some_resource.resource_name its

Terraform: How to create API Gateway endpoints and methods from a list of objects?

I want to create a terraform (v0.12+) module that outputs an AWS API Gateway with Lambda integration(s). I cannot quite understand how (or if it is even possibl

What is the best way to solve `EntityAlreadyExists` error in terraform?

I am using terraform v0.12.6 and I run into many errors like: Error: Error creating Security Group: InvalidGroup.Duplicate: The security group 'security-search-