Quantcast
Channel: Terraform - HashiCorp Discuss
Browsing all 11445 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Tutorial for implementing Import

Hi Terraform team, Can you please provide a tutorial for implementing import in custom terraform provider? HashiCorp Learn Call APIs with Terraform Providers | Terraform - HashiCorp Learn Interact...

View Article


Overwriting the provider defined in a module

My company created an internal set of modules. Each of the modules has a provider block (for aws). I want to call the corporate modules, but redefine the provider block in order to use localstack...

View Article


How do I know which module version is utilized?

Is there a way to get what’s exact version of the module being obtained or used ? There are few places I am using like ~> 0.0.5 to consume the modules - would be good to know what’s used. When I...

View Article

Modify s3 resource not managed by terraform- adding replication rule

Can we modify the existing s3 bucket not managed by terraform? Use case- I need to attach replication rule to an existing s3 bucket and enable the versioning on it . 1 post - 1 participant Read full...

View Article

Cdktf "java" client for kubernetes on-premise

Hi, I am trying to use the cdktf for kubernetes using “java”. Does the cdktf tool supports managing the on-premise kubernetes cluster ? I see the below kubernetes provider uses the AWS, my doubt is...

View Article


How to use outputs for for_each module

Hi Team, So i am following this github repo(“learn-terraform-count-foreach/outputs.tf at master · hashicorp/learn-terraform-count-foreach · GitHub”) and i have some trouble using some outputs of...

View Article

Failed to load bitbucket, digital ocean providers

I’m using terraform v0.14.4 on a Unix (iMac) machine. I am able to download the AWS provider pluigin. However, I get an error downloading the hashicorp/digitalocean and hashicorp/bitbucket plugins. I...

View Article

Using version 0.14.5 but errors are not showing line of code where error resides

Hi I’m using version 0.14.5 of Terraform and I’m trying to debug some errors in code. However I receive the status codes but the error is not telling me any information at all on where the error is?...

View Article


Null_resource + for_each: process incoming files in the filename sort order

Hi, Input: incoming files in directory “.\incoming”: 00100.sql 00101.sql 00102.sql 00103.sql 00104.sql 00105.sql Trying to process incoming files with: terraform { required_version = ">= 0.13" }...

View Article


Can Try() handle "Resource not found error"

Is there a way to handle the data query error using try() or can() For example rg_storage1 doesnt exist it throws and error like data “azurerm_resource_group” “storage_resource_group” { name =...

View Article

New Tutorial: Lock and Upgrade Provider Versions

By Tu Nguyen When multiple users or automation tools manage the same Terraform configuration, they should use the same versions of the configuration’s required providers. There are two ways for you to...

View Article

How to use for_each inside a terraform json configuration file

Hi, I am having trouble escaping or passing along a set to the for_each function when using a terraform json config file. I can do this in a terraform file and everything works as expected: for_each =...

View Article

Conditionally create resources when a for_each loop is involved

A technique for the conditional creation of resources is to have a line immediately after the one with name of the resource like: count = var.create_resource ? 1 : 0 However, for a resource that...

View Article


Users and groups role assignment in Azure Enterprise applications

is it possible to assign users and its role into enterprise apps with terraform azuread provider? 1 post - 1 participant Read full topic

View Article

Is it possible to use variable data sources in a for_each?

I have a couple of remote state datasources based on AWS account names whose purpose it is to get the account ID. I something similar to this in a data_sources.tf: data "terraform_remote_state"...

View Article


Aws aurora postgresql autoscaling

Does terraform support AWS Aurora autoscaling for the engine-mode as Provisioned? If yes please provide api name. 2 posts - 2 participants Read full topic

View Article

New Guide: Use Application Load Balancers for Blue-Green and Canary Deployments

Blue-green deployments and rolling upgrades (canary tests) allow you to release new software gradually, and identify and mitigate the potential blast radius of a failed release. Using this pattern,...

View Article


How to use multiple secretsmanager secret_version in a module?

Hi there! I’m having a weird issue with aws_secretsmanager_secret when two aws_secretsmanager_secret_version resource putting the values in the same AWS Secret. This is how I created a SecretsManager...

View Article

Terraform sentinel policy failed

My requirement is that the sentinel policy should allow only the following types of persistent volumes in AKS - azure_disk",“azure_file”,“csi”,“flex_volume”. The policy that I wrote: import...

View Article

TFE Workspace and Azure DevOps git tags

Afternoon, I am trying to configure a TFE Workspace to use an Azure DevOps repo’s tag and not a branch. When I configure the Workspace’s branch to be refs/tags/TagTestingv1.0 TFE throws an error...

View Article
Browsing all 11445 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>