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

Conditional resource argument on "forces replacement"

Hi, I have a use case where I want to make a change in an existing environment that “forces replacement” on an RDS Aurora DB cluster “aws_rds_cluster”. I don’t really want to lose the data in that...

View Article


How can I create a destination file form a rendered template?

Hi, I want to create an installation file from a rendered template but it creates with incorrect content. Can anyone assist? metadata = { user_data = var.instance_user_data } provisioner "file" {...

View Article


Create a user in Aurora-mysql db with terraform

Hi Team, I have setup Aurora db cluster with writer and reader endpoints along with master username and its password. How to create a normal user in Aurora with terraform? 1 post - 1 participant Read...

View Article

Image may be NSFW.
Clik here to view.

Creating resources in a loop with dynamic values

I need to set up a set of GCE instances for example 5 of them, and I need to do them in a blue/green deployment way. So have we have 5 nodes as “blue” that are active and also potential 5 nodes as...

View Article

Image may be NSFW.
Clik here to view.

Attach Cloudwatch to Sagemaker Endpoint Deployment

Hi, I am currently trying to deploy a Sagemaker Endpoint with an attached cloudwatch log to aws using terraform. For the deployment of the endpoint I have the required code, as shown below, but I...

View Article


Using terraform as a non-admin user account

After I have installed Terraform and added the environment variable on a Windows computer. I have noticed that I can only use Terraform when I run an application like PowerShell or Command Prompt as...

View Article

Depends on resource attributes that cannot be determined until apply

I’m trying to deploy a bastion conditional on bastion being enabled or bastion IP definition. From terraform.tfvars: bastion_ip = "1.2.3.4" It fails terraform plan: │ Error: Invalid count argument │ │...

View Article

Terraform referencing registry.terraform.io/hashicorp/azure which does not exist

I have been unable to init or destroy due to the following error. Has anyone seen this? ➜ terraform init Initializing the backend... Initializing provider plugins... - Reusing previous version of...

View Article


Can't apply splat operator to null sequence

This seems to have stoped working special_steps = var.prefix == "dev" ? ["go"] : null │ 118: for_each = local.special_steps[*] │ ├──────────────── │ │ local.special_steps is null │ │ Splat expressions...

View Article


Terraform CLI v1.0.2 released

Today we’ve released Terraform CLI v1.0.2. This is a patch release in the v1.0 series, including only a few bug fixes compared to v1.0.1. For more information, see the v1.0.2 changelog. 3 posts - 1...

View Article

BUG: Git Bash on Windows - can't pass prefix to GCS module?

I’m trying to set the GCS settings for our statefiles for terraform, passing it as a argument on the command line when calling terraform init, however while the backend configuration seems to apply,...

View Article

Can I attach RDS snapshot to existing Aurora cluster?

I would like to use a snapshot of an production RDS instance and load it into a processing cluster (use case: we need a stable copy of a database for long-running weekly process). I was able to create...

View Article

Hashicorp/aws / Error: Invalid version constraint (A string value is required...

Given the following super basic config : terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 3.48.0" } } } provider "aws" { region = "eu-west-3" } resource...

View Article


Unable to evaluate directory symlink: lstat ../modules/modules: no such file...

I am calling modules from one of the file which is in the root folder, cd ing works locally fine but when ran in pipeline its giving below error Unable to evaluate directory symlink: lstat ../modules:...

View Article

Aws_cloudwatch_metric_alarm with multiples dimensions

Hi, I would like to use aws_cloudwatch_metric_alarm with multiple dimensions but I don’t know if it’s possible and how to do it. I have a custom metric with multiple dimensions : "MetricName":...

View Article


Hclwrite(v2) a object with a reference value

Hi, We works on golang programm to generate terraform files and I am having difficulty generating a local of type object with a value reference, like this : locals { servers = { "admin@server-1" = {...

View Article

Can I specify multiple connecton hosts in the same resource?

Can I specify multiple connection hosts similar to below? count = var.agent_node_count connection { host = var.agent_ips[count.index] , var.apiserver_ip 1 post - 1 participant Read full topic

View Article


Inappropriate value for attribute "vars"

Is there a way to define ‘control_nodes’ in datasources.tf so that it does not hit the following error? From variables.tf: variable "control_nodes" { description = "A list of IP addresses of control...

View Article

Terraform reporting non-sensitive outputs as sensitive in 1.0.2?

Howdy! I’ve just started doing updates from 0.14 to 1.0 and I’m running into a perplexing issue and I’m uncertain if this is intended. We use q wrapper module for creating github repositories that...

View Article

TDD: where is information on how to do TDD for terraform?

Hello: work has a mandate that we must do TDD. Google seems to have a couple of frameworks that look to becoming the de-facto standard. I am hoping that people can chime in and say I watched the...

View Article
Browsing all 11426 articles
Browse latest View live


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