Category "terraform"

terraform combine 2 objects with 2 attributes for aws instance_ids

Following hashicorp doc to leverage for_each to provision multiple instance using local var map. I am unable to get the instance_ids into a single lists for out

how to delete resources with terraform?

set up - a lambda project ( see file structure below) in terraform . in my gitlab-ci, in a build step , lambda code is zipped up at the root of the directory. e

Since we can generate cloudformation stack from serverless framwork execution similarly can we generate terraform scripts from serverless framework?

Since a serverless framework generates cloudformation stack upon execution so I wanted to know is it possible to generate terraform scripts from the serverless

Facing error with terraform code for importing multiple runbook to azure automation account

I have created the azure automation account using terraform code. I have multiple runbooks PowerShell scripts saved in my local. I am using for.each option to i

DevOps Pipeline changing Timeformat when sending variable values as JSON Body to Deploy Azure Resources with Terraform

My Terraform Deployment for Azure Resources contains a Budget, which requires a start and end date. When I'm sending my JSON Body/variable value from my Logic A

Terraform - How to output multiple value

I am very new to Terraform, and programming, however, I have to develop my skills, so I would appreciate your suggestion to have the correct output.tf file. In

Using aws_s3_bucket_cors_configuration for multiple cors_rules with terraform aws provider version 4

In aws provider version 3, we defined the cors_rule in the aws_s3_bucket resource like this: resource "aws_s3_bucket" "bucket" { ... dynamic "cors_rule" {

aws_directory_service_directory in terraform leaves SG wide-open

I've built an AD directory with Terraform in AWS but SecurityHub recently pointed out that the SG it created has a bunch of ports wide open with 0.0.0.0/0. Than

Terraform aws_s3_bucket_replication_configuration can't generate multiple rules with for_each

I have an S3 bucket with the following "folder" structure: Bucket1----> /Partner1 ----> /Client1 ----> /User1 | | |-

Inconsistent failure when downloading terraform modules in azure pipelines

working with a simple terraform build pipeline and everything seems to be according to plan except I get a "failed to download modules" error halfway through my

How can I do so that policies are not attached when I want

I have a problem I need groups to be created and policies attached to those groups but I also need that if the variable policy_name is equal to "" he does not b

Terraform Azure - Error while loading schemas for plugin components: Failed to obtain provider schema:

I am getting below error after running terraform plan. I tried running below command but did not help : terraform init - upgrade terraform init terraform plan

EFS on AWS fargate using Terraform- Can't connected

Good day, I'm having issues connecting to my EFS module from ECS fargate. Everything is built in Terraform. Here are the relevent files: efs.tf resource "aws_ef

terraform validation error despite changing the character count

I am facing with the below error but upon checking, i have realized and reduced the characters to less than 20character for the name but I am still getting the

how to disable soft delete in key vault terraform

I'm trying to disable the soft-delete on key-vault. But i couldn't do it. Here's my terraform Code: provider "azurerm" { features { key_vault { purg

Using aws_kms_key forces instance replacement

I have a strange problem, I created "aws_kms_keys" which is fine and working okay, then I assign that created keys to my ebs_block with the following code : #

Terragrunt import with no root main.tf?

I want to run terragrunt import on an external module. (This resource exists in the real world and I want to pull it into my state). # terragrunt.hcl terraform

Terragrunt import with no root main.tf?

I want to run terragrunt import on an external module. (This resource exists in the real world and I want to pull it into my state). # terragrunt.hcl terraform

command to list workspaces and aws resources created using workspace

Hi I am new to terraform. I want to list resources of aws and correspoding workspace for that resource. I know that terraform terraform workspace list will give

terraform for loop list for target_groups with a combine variable

Is there a way to use the below list in a for loop and add in the target_groups ? I am trying to use the prefix with target_groups variable in a for-loop. I h